com.aragost.javahg.commands
Class VersionCommand
java.lang.Object
com.aragost.javahg.internals.AbstractCommand
com.aragost.javahg.commands.flags.VersionCommandFlags
com.aragost.javahg.commands.VersionCommand
public class VersionCommand
- extends VersionCommandFlags
Command class for executing hg version. Set flags from
VersionCommandFlags
and call the execute()
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 |
VersionCommand
public VersionCommand(Repository repository)
- Parameters:
repository
- the repository associated with this command.
execute
public HgVersion execute()
- Retrieve the Mercurial version number.
- Returns:
- the Mercurial version of the command server. This is a
string since it can include extra information such as
the exact changeset ID used to build Mercurial.
Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.