com.aragost.javahg.commands
Class DiffCommand
java.lang.Object
com.aragost.javahg.internals.AbstractCommand
com.aragost.javahg.commands.flags.DiffCommandFlags
com.aragost.javahg.commands.DiffCommand
public class DiffCommand
- extends DiffCommandFlags
Command class for executing hg diff. Set flags from
DiffCommandFlags
and call the execute()
method.
Methods inherited from class com.aragost.javahg.commands.flags.DiffCommandFlags |
change, exclude, getCommandName, ignoreAllSpace, ignoreBlankLines, ignoreSpaceChange, include, nodates, on, rev, reverse, showFunction, stat, unified |
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 |
DiffCommand
public DiffCommand(Repository repository)
- Parameters:
repository
- the repository associated with this command.
execute
public String execute()
- Run hg diff.
- Returns:
- the diff as a String.
execute
public String execute(String... files)
- Run hg diff on the files.
- Parameters:
files
- the input files
- Returns:
- the diff as a String.
execute
public String execute(File... files)
- Run hg diff on the files.
- Parameters:
files
- the input files
- Returns:
- the diff as a String.
stream
public HgInputStream stream(File... files)
- Run hg diff on the files. Note: The caller is responsible for fully
consuming the returned stream
- Parameters:
files
- the input files
- Returns:
- the diff as a stream
Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.