com.aragost.javahg.commands
Class PhaseCommand

java.lang.Object
  extended by com.aragost.javahg.internals.AbstractCommand
      extended by com.aragost.javahg.commands.flags.PhaseCommandFlags
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aragost.javahg.internals.AbstractCommand
AbstractCommand.State
 
Constructor Summary
PhaseCommand(Repository repository)
           
 
Method Summary
 boolean execute()
           
 boolean isSuccessful()
          Check if the command ended with a zero return code.
 PhaseCommand pub()
          Set the --public command line flag.
 
Methods inherited from class com.aragost.javahg.commands.flags.PhaseCommandFlags
draft, force, getCommandName, on, rev, secret
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhaseCommand

public PhaseCommand(Repository repository)
Parameters:
repository - the repository associated with this command.
Method Detail

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.