com.aragost.javahg.commands
Class OutgoingCommand

java.lang.Object
  extended by com.aragost.javahg.internals.AbstractCommand
      extended by com.aragost.javahg.commands.flags.OutgoingCommandFlags
          extended by com.aragost.javahg.commands.OutgoingCommand

public class OutgoingCommand
extends OutgoingCommandFlags

Command class for executing hg outgoing. Set flags from OutgoingCommandFlags and call the execute(java.lang.String) method.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aragost.javahg.internals.AbstractCommand
AbstractCommand.State
 
Constructor Summary
OutgoingCommand(Repository repository)
           
 
Method Summary
 List<Changeset> execute(File repoDir)
           
 List<Changeset> execute(Repository repository)
           
 List<Changeset> execute(String dst)
           
 boolean isSuccessful()
          Check if the command ended with a zero return code.
 
Methods inherited from class com.aragost.javahg.commands.flags.OutgoingCommandFlags
bookmarks, branch, force, getCommandName, insecure, limit, newestFirst, noMerges, on, remotecmd, rev, ssh
 
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

OutgoingCommand

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

execute

public List<Changeset> execute(String dst)
Parameters:
dst - the destination repository.
Returns:
list of outgoing changesets.

execute

public List<Changeset> execute(File repoDir)

execute

public List<Changeset> execute(Repository repository)

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.