com.aragost.javahg.commands
Class AnnotateCommand
java.lang.Object
com.aragost.javahg.internals.AbstractCommand
com.aragost.javahg.commands.flags.AnnotateCommandFlags
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.
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 |
AnnotateCommand
public AnnotateCommand(Repository repository)
- Parameters:
repository
- the repository associated with this command.
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.