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