com.aragost.javahg.commands
Class ParentsCommand
java.lang.Object
com.aragost.javahg.internals.AbstractCommand
com.aragost.javahg.commands.flags.ParentsCommandFlags
com.aragost.javahg.commands.ParentsCommand
public class ParentsCommand
- extends ParentsCommandFlags
Command class for executing hg parents. Set flags from
ParentsCommandFlags
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, isSuccessful, launchIterator, launchStream, launchString, needsInputLine, reopenOutputChannelStream, sendLine, toString, withDebugAndChangesetStyle, withDebugFlag |
ParentsCommand
public ParentsCommand(Repository repository)
- Parameters:
repository
- the repository associated with this command.
execute
public List<Changeset> execute()
- Returns:
- the parents of the working directory or revision
execute
public List<Changeset> execute(String file)
- Parameters:
file
- The file whose parents to get
- Returns:
- the parents of the working directory or revision
Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.