Show More
@@ -32,8 +32,7 b' def checknewlabel(repo, lbl, kind):' | |||||
32 | raise util.Abort(_("the name '%s' is reserved") % lbl) |
|
32 | raise util.Abort(_("the name '%s' is reserved") % lbl) | |
33 | for c in (':', '\0', '\n', '\r'): |
|
33 | for c in (':', '\0', '\n', '\r'): | |
34 | if c in lbl: |
|
34 | if c in lbl: | |
35 |
raise util.Abort(_("%r cannot be used in a |
|
35 | raise util.Abort(_("%r cannot be used in a name") % c) | |
36 | (c, kind)) |
|
|||
37 |
|
36 | |||
38 | def checkfilename(f): |
|
37 | def checkfilename(f): | |
39 | '''Check that the filename f is an acceptable filename for a tracked file''' |
|
38 | '''Check that the filename f is an acceptable filename for a tracked file''' |
@@ -302,12 +302,12 b' bookmark name with whitespace only' | |||||
302 | invalid bookmark |
|
302 | invalid bookmark | |
303 |
|
303 | |||
304 | $ hg bookmark 'foo:bar' |
|
304 | $ hg bookmark 'foo:bar' | |
305 |
abort: ':' cannot be used in a |
|
305 | abort: ':' cannot be used in a name | |
306 | [255] |
|
306 | [255] | |
307 |
|
307 | |||
308 | $ hg bookmark 'foo |
|
308 | $ hg bookmark 'foo | |
309 | > bar' |
|
309 | > bar' | |
310 |
abort: '\n' cannot be used in a |
|
310 | abort: '\n' cannot be used in a name | |
311 | [255] |
|
311 | [255] | |
312 |
|
312 | |||
313 | the bookmark extension should be ignored now that it is part of core |
|
313 | the bookmark extension should be ignored now that it is part of core |
@@ -60,12 +60,12 b' reserved names' | |||||
60 | invalid characters |
|
60 | invalid characters | |
61 |
|
61 | |||
62 | $ hg branch 'foo:bar' |
|
62 | $ hg branch 'foo:bar' | |
63 |
abort: ':' cannot be used in a |
|
63 | abort: ':' cannot be used in a name | |
64 | [255] |
|
64 | [255] | |
65 |
|
65 | |||
66 | $ hg branch 'foo |
|
66 | $ hg branch 'foo | |
67 | > bar' |
|
67 | > bar' | |
68 |
abort: '\n' cannot be used in a |
|
68 | abort: '\n' cannot be used in a name | |
69 | [255] |
|
69 | [255] | |
70 |
|
70 | |||
71 | $ echo 'd' >d |
|
71 | $ echo 'd' >d |
@@ -116,10 +116,10 b' tagging on a non-head revision' | |||||
116 |
|
116 | |||
117 | $ hg tag -l 'xx |
|
117 | $ hg tag -l 'xx | |
118 | > newline' |
|
118 | > newline' | |
119 |
abort: '\n' cannot be used in a |
|
119 | abort: '\n' cannot be used in a name | |
120 | [255] |
|
120 | [255] | |
121 | $ hg tag -l 'xx:xx' |
|
121 | $ hg tag -l 'xx:xx' | |
122 |
abort: ':' cannot be used in a |
|
122 | abort: ':' cannot be used in a name | |
123 | [255] |
|
123 | [255] | |
124 |
|
124 | |||
125 | cloning local tags |
|
125 | cloning local tags |
General Comments 0
You need to be logged in to leave comments.
Login now