##// END OF EJS Templates
Merge with stable
Matt Mackall -
r11697:efcdf6a9 merge default
parent child Browse files
Show More
@@ -3650,6 +3650,8 b' def tag(ui, repo, name1, *names, **opts)'
3650 for n in names:
3650 for n in names:
3651 if n in ['tip', '.', 'null']:
3651 if n in ['tip', '.', 'null']:
3652 raise util.Abort(_('the name \'%s\' is reserved') % n)
3652 raise util.Abort(_('the name \'%s\' is reserved') % n)
3653 if not n:
3654 raise util.Abort(_('tag names cannot consist entirely of whitespace'))
3653 if opts.get('rev') and opts.get('remove'):
3655 if opts.get('rev') and opts.get('remove'):
3654 raise util.Abort(_("--rev and --remove are incompatible"))
3656 raise util.Abort(_("--rev and --remove are incompatible"))
3655 if opts.get('rev'):
3657 if opts.get('rev'):
@@ -7,6 +7,9 b' echo a > a'
7 hg add a
7 hg add a
8 hg commit -m "test" -d "1000000 0"
8 hg commit -m "test" -d "1000000 0"
9 hg history
9 hg history
10
11 hg tag ' '
12
10 hg tag -d "1000000 0" "bleah"
13 hg tag -d "1000000 0" "bleah"
11 hg history
14 hg history
12
15
@@ -4,6 +4,7 b' user: test'
4 date: Mon Jan 12 13:46:40 1970 +0000
4 date: Mon Jan 12 13:46:40 1970 +0000
5 summary: test
5 summary: test
6
6
7 abort: tag names cannot consist entirely of whitespace
7 changeset: 1:3ecf002a1c57
8 changeset: 1:3ecf002a1c57
8 tag: tip
9 tag: tip
9 user: test
10 user: test
General Comments 0
You need to be logged in to leave comments. Login now