com.aragost.javahg.commands
Class TagsCommand
java.lang.Object
com.aragost.javahg.internals.AbstractCommand
com.aragost.javahg.commands.flags.TagsCommandFlags
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.
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 |
includeTip
protected boolean includeTip
TagsCommand
public TagsCommand(Repository repository)
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.