com.aragost.javahg.commands
Class VersionCommand

java.lang.Object
  extended by com.aragost.javahg.internals.AbstractCommand
      extended by com.aragost.javahg.commands.flags.VersionCommandFlags
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aragost.javahg.internals.AbstractCommand
AbstractCommand.State
 
Constructor Summary
VersionCommand(Repository repository)
           
 
Method Summary
 HgVersion execute()
          Retrieve the Mercurial version number.
 
Methods inherited from class com.aragost.javahg.commands.flags.VersionCommandFlags
getCommandName, on
 
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

VersionCommand

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

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.