com.aragost.javahg.commands
Class PhaseCommand
java.lang.Object
com.aragost.javahg.internals.AbstractCommand
com.aragost.javahg.commands.flags.PhaseCommandFlags
com.aragost.javahg.commands.PhaseCommand
public class PhaseCommand
- extends PhaseCommandFlags
Command class for executing hg phase. Set flags from
PhaseCommandFlags
and call the execute()
method.
Methods inherited from class com.aragost.javahg.internals.AbstractCommand |
cancel, clear, cmdAppend, cmdAppend, cmdAppend, cmdAppend, cmdAppend, doneHook, getErrorString, getRepository, getReturnCode, launchIterator, launchStream, launchString, needsInputLine, reopenOutputChannelStream, sendLine, toString, withDebugAndChangesetStyle, withDebugFlag |
PhaseCommand
public PhaseCommand(Repository repository)
- Parameters:
repository
- the repository associated with this command.
pub
public PhaseCommand pub()
- Set the --public command line flag.
Since public is a keyword in Java, the method can not
- as other flags - be named as the flag.
- Returns:
- this instance
- See Also:
- Mercurial
documentation
isSuccessful
public boolean isSuccessful()
- Description copied from class:
AbstractCommand
- Check if the command ended with a zero return code. Subclasses
can override this to accept other return codes as successful.
- Overrides:
isSuccessful
in class AbstractCommand
- Returns:
- true if the command ended successfully.
execute
public boolean execute()
Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.