/*
* #%L
* JavaHg
* %%
* Copyright (C) 2011 aragost Trifork ag
* %%
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* #L%
*/
/*
* Automatically generated based on Mercurial 2.3+10-9d9d15928521.
*
* Don't edit this file! Edit scripts/generate-flag-classes.py instead.
*/
package com.aragost.javahg.commands.flags;
import com.aragost.javahg.Repository;
import com.aragost.javahg.commands.IdentifyCommand;
import com.aragost.javahg.internals.AbstractCommand;
public abstract class IdentifyCommandFlags extends AbstractCommand {
protected IdentifyCommandFlags(Repository repository) {
super(repository);
}
@Override
public final String getCommandName() {
return "identify";
}
public static IdentifyCommand on(Repository repository) {
return new IdentifyCommand(repository);
}
/**
* Set the <tt>--rev</tt> command line flag.
*
* @see <a
* href="http://www.selenic.com/mercurial/hg.1.html#identify">Mercurial
* documentation</a>
* @return this instance
*/
public IdentifyCommand rev(String rev) {
cmdAppend("--rev", rev);
return (IdentifyCommand) this;
}
/**
* Set the <tt>--num</tt> command line flag.
*
* @see <a
* href="http://www.selenic.com/mercurial/hg.1.html#identify">Mercurial
* documentation</a>
* @return this instance
*/
public IdentifyCommand num() {
cmdAppend("--num");
return (IdentifyCommand) this;
}
/**
* Set the <tt>--id</tt> command line flag.
*
* @see <a
* href="http://www.selenic.com/mercurial/hg.1.html#identify">Mercurial
* documentation</a>
* @return this instance
*/
public IdentifyCommand id() {
cmdAppend("--id");
return (IdentifyCommand) this;
}
/**
* Set the <tt>--branch</tt> command line flag.
*
* @see <a
* href="http://www.selenic.com/mercurial/hg.1.html#identify">Mercurial
* documentation</a>
* @return this instance
*/
public IdentifyCommand branch() {
cmdAppend("--branch");
return (IdentifyCommand) this;
}
/**
* Set the <tt>--tags</tt> command line flag.
*
* @see <a
* href="http://www.selenic.com/mercurial/hg.1.html#identify">Mercurial
* documentation</a>
* @return this instance
*/
public IdentifyCommand tags() {
cmdAppend("--tags");
return (IdentifyCommand) this;
}
/**
* Set the <tt>--bookmarks</tt> command line flag.
*
* @see <a
* href="http://www.selenic.com/mercurial/hg.1.html#identify">Mercurial
* documentation</a>
* @return this instance
*/
public IdentifyCommand bookmarks() {
cmdAppend("--bookmarks");
return (IdentifyCommand) this;
}
/**
* Set the <tt>--ssh</tt> command line flag.
*
* @see <a
* href="http://www.selenic.com/mercurial/hg.1.html#identify">Mercurial
* documentation</a>
* @return this instance
*/
public IdentifyCommand ssh(String cmd) {
cmdAppend("--ssh", cmd);
return (IdentifyCommand) this;
}
/**
* Set the <tt>--remotecmd</tt> command line flag.
*
* @see <a
* href="http://www.selenic.com/mercurial/hg.1.html#identify">Mercurial
* documentation</a>
* @return this instance
*/
public IdentifyCommand remotecmd(String cmd) {
cmdAppend("--remotecmd", cmd);
return (IdentifyCommand) this;
}
/**
* Set the <tt>--insecure</tt> command line flag.
*
* @see <a
* href="http://www.selenic.com/mercurial/hg.1.html#identify">Mercurial
* documentation</a>
* @return this instance
*/
public IdentifyCommand insecure() {
cmdAppend("--insecure");
return (IdentifyCommand) this;
}
}