com.aragost.javahg.commands
Class RollbackCommand

java.lang.Object
  extended by com.aragost.javahg.internals.AbstractCommand
      extended by com.aragost.javahg.commands.flags.RollbackCommandFlags
          extended by com.aragost.javahg.commands.RollbackCommand

public class RollbackCommand
extends RollbackCommandFlags

Command class for executing hg rollback. Set flags from RollbackCommandFlags and call theexecute() method.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aragost.javahg.internals.AbstractCommand
AbstractCommand.State
 
Constructor Summary
RollbackCommand(Repository repository)
           
 
Method Summary
 Changeset execute()
          Rollback last transaction.
 
Methods inherited from class com.aragost.javahg.commands.flags.RollbackCommandFlags
force, getCommandName, on
 
Methods inherited from class com.aragost.javahg.internals.AbstractCommand
cancel, clear, cmdAppend, cmdAppend, cmdAppend, cmdAppend, cmdAppend, doneHook, getErrorString, getRepository, getReturnCode, isSuccessful, 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

RollbackCommand

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

execute

public Changeset execute()
Rollback last transaction.

Returns:
The new tip of the repository


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