Show More
@@ -813,8 +813,7 b' class queue(object):' | |||
|
813 | 813 | _reserved = ('series', 'status', 'guards') |
|
814 | 814 | def check_reserved_name(self, name): |
|
815 | 815 | if (name in self._reserved or name.startswith('.hg') |
|
816 | or name.startswith('.mq') or '#' in name | |
|
817 | or (os.name == 'nt' and ':' in name)): | |
|
816 | or name.startswith('.mq') or '#' in name or ':' in name): | |
|
818 | 817 | raise util.Abort(_('"%s" cannot be used as the name of a patch') |
|
819 | 818 | % name) |
|
820 | 819 |
@@ -21,6 +21,7 b' runtest() {' | |||
|
21 | 21 | hg qnew .hgignore |
|
22 | 22 | hg qnew .mqfoo |
|
23 | 23 | hg qnew 'foo#bar' |
|
24 | hg qnew 'foo:bar' | |
|
24 | 25 | |
|
25 | 26 | hg qinit -c |
|
26 | 27 |
@@ -7,6 +7,7 b' abort: "guards" cannot be used as the na' | |||
|
7 | 7 | abort: ".hgignore" cannot be used as the name of a patch |
|
8 | 8 | abort: ".mqfoo" cannot be used as the name of a patch |
|
9 | 9 | abort: "foo#bar" cannot be used as the name of a patch |
|
10 | abort: "foo:bar" cannot be used as the name of a patch | |
|
10 | 11 | % qnew with uncommitted changes |
|
11 | 12 | uncommitted.patch |
|
12 | 13 | % qnew implies add |
General Comments 0
You need to be logged in to leave comments.
Login now