##// END OF EJS Templates
deprecate the use of 'hg tag NAME [REV]'...
Benoit Boissinot -
r1654:b7fc9615 default
parent child Browse files
Show More
@@ -2079,10 +2079,16 b' def tag(ui, repo, name, rev_=None, **opt'
2079 To facilitate version control, distribution, and merging of tags,
2079 To facilitate version control, distribution, and merging of tags,
2080 they are stored as a file named ".hgtags" which is managed
2080 they are stored as a file named ".hgtags" which is managed
2081 similarly to other project files and can be hand-edited if
2081 similarly to other project files and can be hand-edited if
2082 necessary.
2082 necessary. The file '.hg/localtags' is used for local tags (not
2083 shared among repositories).
2083 """
2084 """
2084 if name == "tip":
2085 if name == "tip":
2085 raise util.Abort(_("the name 'tip' is reserved"))
2086 raise util.Abort(_("the name 'tip' is reserved"))
2087 if rev_ is not None:
2088 ui.warn(_("use of 'hg tag NAME [REV]' is deprecated, "
2089 "please use 'hg tag [-r REV] NAME instead\n"))
2090 if opts['rev']:
2091 raise util.Abort(_("use only one form to specify the revision"))
2086 if opts['rev']:
2092 if opts['rev']:
2087 rev_ = opts['rev']
2093 rev_ = opts['rev']
2088 if rev_:
2094 if rev_:
@@ -2470,7 +2476,7 b' table = {'
2470 ('d', 'date', '', _('record datecode as commit date')),
2476 ('d', 'date', '', _('record datecode as commit date')),
2471 ('u', 'user', '', _('record user as commiter')),
2477 ('u', 'user', '', _('record user as commiter')),
2472 ('r', 'rev', '', _('revision to tag'))],
2478 ('r', 'rev', '', _('revision to tag'))],
2473 _('hg tag [OPTION]... NAME [REV]')),
2479 _('hg tag [-r REV] [OPTION]... NAME')),
2474 "tags": (tags, [], _('hg tags')),
2480 "tags": (tags, [], _('hg tags')),
2475 "tip": (tip, [], _('hg tip')),
2481 "tip": (tip, [], _('hg tip')),
2476 "unbundle":
2482 "unbundle":
@@ -10,6 +10,7 b' hg history'
10
10
11 echo foo >> .hgtags
11 echo foo >> .hgtags
12 hg tag -d "0 0" "bleah2" || echo "failed"
12 hg tag -d "0 0" "bleah2" || echo "failed"
13 hg tag -d "0 0" -r 0 "bleah2" 1 || echo "failed"
13
14
14 hg revert .hgtags
15 hg revert .hgtags
15 hg tag -d "0 0" -r 0 "bleah0"
16 hg tag -d "0 0" -r 0 "bleah0"
@@ -18,6 +18,10 b' summary: test'
18
18
19 abort: working copy of .hgtags is changed (please commit .hgtags manually)
19 abort: working copy of .hgtags is changed (please commit .hgtags manually)
20 failed
20 failed
21 use of 'hg tag NAME [REV]' is deprecated, please use 'hg tag [-r REV] NAME instead
22 abort: use only one form to specify the revision
23 failed
24 use of 'hg tag NAME [REV]' is deprecated, please use 'hg tag [-r REV] NAME instead
21 acb14030fe0a21b60322c440ad2d20cf7685a376 bleah
25 acb14030fe0a21b60322c440ad2d20cf7685a376 bleah
22 acb14030fe0a21b60322c440ad2d20cf7685a376 bleah0
26 acb14030fe0a21b60322c440ad2d20cf7685a376 bleah0
23 863197ef03781c4fc00276d83eb66c4cb9cd91df bleah1
27 863197ef03781c4fc00276d83eb66c4cb9cd91df bleah1
General Comments 0
You need to be logged in to leave comments. Login now