com.aragost.javahg.commands
Class BackoutCommand

java.lang.Object
  extended by com.aragost.javahg.internals.AbstractCommand
      extended by com.aragost.javahg.commands.flags.BackoutCommandFlags
          extended by com.aragost.javahg.commands.BackoutCommand

public class BackoutCommand
extends BackoutCommandFlags

Command class for executing hg backout. Set flags from BackoutCommandFlags.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aragost.javahg.internals.AbstractCommand
AbstractCommand.State
 
Constructor Summary
BackoutCommand(Repository repository)
           
 
Method Summary
 BackoutConflictResolvingContext execute()
          Execute the backout.
 boolean isSuccessful()
          Check if the command ended with a zero return code.
 BackoutCommand merge()
          Set the --merge command line flag.
 
Methods inherited from class com.aragost.javahg.commands.flags.BackoutCommandFlags
date, exclude, getCommandName, include, message, on, parent, rev, tool, user
 
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

BackoutCommand

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

merge

public BackoutCommand merge()
Description copied from class: BackoutCommandFlags
Set the --merge command line flag.

Overrides:
merge in class BackoutCommandFlags
Returns:
this instance
See Also:
Mercurial documentation

execute

public BackoutConflictResolvingContext execute()
Execute the backout.

Returns:
Merge context

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.


Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.