com.aragost.javahg.commands
Class IncomingCommand

java.lang.Object
  extended by com.aragost.javahg.internals.AbstractCommand
      extended by com.aragost.javahg.commands.flags.IncomingCommandFlags
          extended by com.aragost.javahg.commands.IncomingCommand

public class IncomingCommand
extends IncomingCommandFlags

Command class for executing hg incoming. Set flags from IncomingCommandFlags 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
IncomingCommand(Repository repository)
           
 
Method Summary
 IncomingCommand bundle(String file)
          Set the --bundle command line flag.
 Bundle execute(File directory)
           
 Bundle execute(Repository repository)
           
 Bundle execute(String src)
           
 boolean isSuccessful()
          Check if the command ended with a zero return code.
 
Methods inherited from class com.aragost.javahg.commands.flags.IncomingCommandFlags
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

IncomingCommand

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

bundle

public IncomingCommand bundle(String file)
Description copied from class: IncomingCommandFlags
Set the --bundle command line flag.

Overrides:
bundle in class IncomingCommandFlags
Returns:
this instance
See Also:
Mercurial documentation

execute

public Bundle execute(String src)
Parameters:
src - the source repository.
Returns:
bundle with incoming changesets

execute

public Bundle execute(File directory)

execute

public Bundle 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.