com.aragost.javahg.commands
Class AnnotateCommand

java.lang.Object
  extended by com.aragost.javahg.internals.AbstractCommand
      extended by com.aragost.javahg.commands.flags.AnnotateCommandFlags
          extended by com.aragost.javahg.commands.AnnotateCommand

public class AnnotateCommand
extends AnnotateCommandFlags

Command class for executing hg annotate. Set flags from AnnotateCommandFlags and see the execute(java.lang.String) method for how to run the command.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aragost.javahg.internals.AbstractCommand
AbstractCommand.State
 
Constructor Summary
AnnotateCommand(Repository repository)
           
 
Method Summary
 List<AnnotateLine> execute(String file)
          Execute hg annotate for the specified file.
 
Methods inherited from class com.aragost.javahg.commands.flags.AnnotateCommandFlags
exclude, getCommandName, ignoreAllSpace, ignoreBlankLines, ignoreSpaceChange, include, noFollow, 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

AnnotateCommand

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

execute

public List<AnnotateLine> execute(String file)
                           throws IOException
Execute hg annotate for the specified file.

On the command line, Mercurial can annotate more than one file, JavaHg can only annotate one file for each call (but the overhead is negligible to make multiple calls).

Parameters:
file -
Returns:
list of annotated lines.
Throws:
IOException


Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.