com.aragost.javahg.commands
Class PullCommand
java.lang.Object
com.aragost.javahg.internals.AbstractCommand
com.aragost.javahg.commands.flags.PullCommandFlags
com.aragost.javahg.commands.PullCommand
public class PullCommand
- extends PullCommandFlags
Command class for executing hg pull. Set flags from
PullCommandFlags
and call the execute()
method.
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 |
PullCommand
public PullCommand(Repository repository)
- Parameters:
repository
- the repository associated with this command.
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 List<Changeset> execute()
throws IOException
- Run hg pull using the default path.
- Returns:
- list of pulled changesets.
- Throws:
IOException
execute
public List<Changeset> execute(String source)
throws IOException
- Run hg pull source with an explicit source path.
- Parameters:
source
- the source path. Cannot be null.
- Returns:
- list of pulled changesets.
- Throws:
IOException
Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.