Debian Codegraph @

doc/man/hg-tag.1

raw
1 .TH HG TAG "" "" ""
2 .SH NAME
3 hg tag \- add one or more tags for the current or given revision
4 .\" Man page generated from reStructuredText.
5 .
6 .SH SYNOPSIS
7 .sp
8 .nf
9 .ft C
10 hg tag [\-f] [\-l] [\-m TEXT] [\-d DATE] [\-u USER] [\-r REV] NAME...
11 .ft P
12 .fi
13 .SH DESCRIPTION
14 .sp
15 Name a particular revision using <name>.
16 .sp
17 Tags are used to name particular revisions of the repository and are
18 very useful to compare different revisions, to go back to significant
19 earlier versions or to mark branch points as releases, etc. Changing
20 an existing tag is normally disallowed; use \-f/\-\-force to override.
21 .sp
22 If no revision is given, the parent of the working directory is
23 used.
24 .sp
25 To facilitate version control, distribution, and merging of tags,
26 they are stored as a file named ".hgtags" which is managed similarly
27 to other project files and can be hand\-edited if necessary. This
28 also means that tagging creates a new commit. The file
29 ".hg/localtags" is used for local tags (not shared among
30 repositories).
31 .sp
32 Tag commits are usually made at the head of a branch. If the parent
33 of the working directory is not a branch head, \%\fBhg tag\fP\: aborts; use
34 \-f/\-\-force to force the tag commit to be based on a non\-head
35 changeset.
36 .sp
37 See \%\fBhg help dates\fP\: for a list of formats valid for \-d/\-\-date.
38 .sp
39 Since tag names have priority over branch names during revision
40 lookup, using an existing branch name as a tag name is discouraged.
41 .sp
42 Returns 0 on success.
43 .SH OPTIONS
44 .INDENT 0.0
45 .TP
46 .B \-f, \-\-force
47 .
48 force tag
49 .TP
50 .B \-l, \-\-local
51 .
52 make the tag local
53 .TP
54 .BI \-r, \-\-rev \ <REV>
55 .
56 revision to tag
57 .TP
58 .B \-\-remove
59 .
60 remove a tag
61 .TP
62 .B \-e, \-\-edit
63 .
64 invoke editor on commit messages
65 .TP
66 .BI \-m, \-\-message \ <TEXT>
67 .
68 use text as commit message
69 .TP
70 .BI \-d, \-\-date \ <DATE>
71 .
72 record the specified date as commit date
73 .TP
74 .BI \-u, \-\-user \ <USER>
75 .
76 record the specified user as committer
77 .UNINDENT
78 .\" Generated by docutils manpage writer.
79 .\"
80 .