com.aragost.javahg.commands
Class TagsCommand

java.lang.Object
  extended by com.aragost.javahg.internals.AbstractCommand
      extended by com.aragost.javahg.commands.flags.TagsCommandFlags
          extended by com.aragost.javahg.commands.TagsCommand

public class TagsCommand
extends TagsCommandFlags

Command class for executing hg tags. Set flags from TagsCommandFlags and see the execute() method for how to run the command.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aragost.javahg.internals.AbstractCommand
AbstractCommand.State
 
Field Summary
protected  boolean includeTip
           
 
Constructor Summary
TagsCommand(Repository repository)
           
 
Method Summary
 List<Tag> execute()
          Return a map mapping tag names to changeset with the tag.
 Map<Changeset,List<Tag>> executeReverse()
          Return alternative mapping of changeset node hash to list of tags.
 TagsCommand includeTip()
          Whether tip should be included.
 
Methods inherited from class com.aragost.javahg.commands.flags.TagsCommandFlags
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
 

Field Detail

includeTip

protected boolean includeTip
Constructor Detail

TagsCommand

public TagsCommand(Repository repository)
Method Detail

includeTip

public TagsCommand includeTip()
Whether tip should be included. Default false

Returns:
this

execute

public List<Tag> execute()
Return a map mapping tag names to changeset with the tag.

The command 'hg tags' returns the pseudo tag 'tip', this is not returned here.

Returns:
map mapping tag name to changeset

executeReverse

public Map<Changeset,List<Tag>> executeReverse()
Return alternative mapping of changeset node hash to list of tags.

The command 'hg tags' returns the pseudo tag 'tip', this is not returned here.

Returns:
map mapping changeset to tags at that node.


Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.