[F013] Tag

This functionality aims to surround : hg tag and to adapt it for <ant> tags.

Shell command

hg tag [-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...

add one or more tags for the current or given revision

    Name a particular revision using <name>.

    Tags are used to name particular revisions of the repository and are very
    useful to compare different revisions, to go back to significant earlier
    versions or to mark branch points as releases, etc.

    If no revision is given, the parent of the working directory is used, or
    tip if no revision is checked out.

    To facilitate version control, distribution, and merging of tags, they are
    stored as a file named ".hgtags" which is managed similarly to other
    project files and can be hand-edited if necessary. The file
    '.hg/localtags' is used for local tags (not shared among repositories).

    See 'hg help dates' for a list of formats valid for -d/--date.


 -f --force    replace existing tag
 -l --local    make the tag local
 -r --rev      revision to tag
    --remove   remove a tag
 -m --message  use <text> as commit message
 -d --date     record datecode as commit date
 -u --user     record the specified user as committer

use "hg -v help tag" to show global options


Attribute Description Value Required
cmd hg command tag yes
dir directory to tag yes
tag name of the tag yes
force replace existing tag true/false, yes/no, on/off no
local make the tag local true/false, yes/no, on/off no
revision revision to tag no
remove remove a tag true/false, yes/no, on/off no
message use <text> as commit message no
date record datecode as commit date no
user record the specified user as committer yes