Show More
@@ -3660,6 +3660,8 b' def tag(ui, repo, name1, *names, **opts)' | |||||
3660 | for n in names: |
|
3660 | for n in names: | |
3661 | if n in ['tip', '.', 'null']: |
|
3661 | if n in ['tip', '.', 'null']: | |
3662 | raise util.Abort(_('the name \'%s\' is reserved') % n) |
|
3662 | raise util.Abort(_('the name \'%s\' is reserved') % n) | |
|
3663 | if not n: | |||
|
3664 | raise util.Abort(_('tag names cannot consist entirely of whitespace')) | |||
3663 | if opts.get('rev') and opts.get('remove'): |
|
3665 | if opts.get('rev') and opts.get('remove'): | |
3664 | raise util.Abort(_("--rev and --remove are incompatible")) |
|
3666 | raise util.Abort(_("--rev and --remove are incompatible")) | |
3665 | if opts.get('rev'): |
|
3667 | 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