com.aragost.javahg.commands
Class ExportCommand
java.lang.Object
com.aragost.javahg.internals.AbstractCommand
com.aragost.javahg.commands.flags.ExportCommandFlags
com.aragost.javahg.commands.ExportCommand
public class ExportCommand
- extends ExportCommandFlags
Command class for executing hg export. Set flags from
ExportCommandFlags
and call the execute(java.lang.String...)
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 |
ExportCommand
public ExportCommand(Repository repository)
- Parameters:
repository
- the repository associated with this command.
execute
public String execute(String... revs)
- Export a revision to a string.
- Parameters:
revs
- list of changeset identifiers to export.
- Returns:
- the patch as a string.
- Throws:
IOException
execute
public String execute(int... revs)
- Export a revision to a string.
- Parameters:
revs
- list of revision numbers to export.
- Returns:
- the patch as a string.
- Throws:
IOException
stream
public HgInputStream stream(String... revs)
- Export a revision to a stream. Note: The caller is responsible for fully
consuming the returned stream
- Parameters:
revs
- list of changeset identifiers to export.
- Returns:
- the patch as a string.
- Throws:
IOException
Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.