com.aragost.javahg.commands
Class ParentsCommand

java.lang.Object
  extended by com.aragost.javahg.internals.AbstractCommand
      extended by com.aragost.javahg.commands.flags.ParentsCommandFlags
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aragost.javahg.internals.AbstractCommand
AbstractCommand.State
 
Constructor Summary
ParentsCommand(Repository repository)
           
 
Method Summary
 List<Changeset> execute()
           
 List<Changeset> execute(String file)
           
 
Methods inherited from class com.aragost.javahg.commands.flags.ParentsCommandFlags
getCommandName, on, rev
 
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

ParentsCommand

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

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.