Show More
@@ -839,8 +839,12 b' class queue(object):' | |||||
839 | insert = self.full_series_end() |
|
839 | insert = self.full_series_end() | |
840 | wlock = repo.wlock() |
|
840 | wlock = repo.wlock() | |
841 | try: |
|
841 | try: | |
|
842 | try: | |||
842 | # if patch file write fails, abort early |
|
843 | # if patch file write fails, abort early | |
843 | p = self.opener(patchfn, "w") |
|
844 | p = self.opener(patchfn, "w") | |
|
845 | except IOError, e: | |||
|
846 | raise util.Abort(_('cannot write patch "%s": %s') | |||
|
847 | % (patchfn, e.strerror)) | |||
844 | try: |
|
848 | try: | |
845 | if self.plainmode: |
|
849 | if self.plainmode: | |
846 | if user: |
|
850 | if user: |
@@ -23,6 +23,7 b'' | |||||
23 | > hg qinit -c |
|
23 | > hg qinit -c | |
24 | > |
|
24 | > | |
25 | > echo '% qnew with name containing slash' |
|
25 | > echo '% qnew with name containing slash' | |
|
26 | > hg qnew foo/ | |||
26 | > hg qnew foo/bar.patch |
|
27 | > hg qnew foo/bar.patch | |
27 | > hg qseries |
|
28 | > hg qseries | |
28 | > hg qpop |
|
29 | > hg qpop | |
@@ -105,6 +106,7 b' plain headers' | |||||
105 | abort: "foo#bar" cannot be used as the name of a patch |
|
106 | abort: "foo#bar" cannot be used as the name of a patch | |
106 | abort: "foo:bar" cannot be used as the name of a patch |
|
107 | abort: "foo:bar" cannot be used as the name of a patch | |
107 | % qnew with name containing slash |
|
108 | % qnew with name containing slash | |
|
109 | abort: cannot write patch "foo/": Is a directory | |||
108 | foo/bar.patch |
|
110 | foo/bar.patch | |
109 | popping foo/bar.patch |
|
111 | popping foo/bar.patch | |
110 | patch queue now empty |
|
112 | patch queue now empty | |
@@ -168,6 +170,7 b' hg headers' | |||||
168 | abort: "foo#bar" cannot be used as the name of a patch |
|
170 | abort: "foo#bar" cannot be used as the name of a patch | |
169 | abort: "foo:bar" cannot be used as the name of a patch |
|
171 | abort: "foo:bar" cannot be used as the name of a patch | |
170 | % qnew with name containing slash |
|
172 | % qnew with name containing slash | |
|
173 | abort: cannot write patch "foo/": Is a directory | |||
171 | foo/bar.patch |
|
174 | foo/bar.patch | |
172 | popping foo/bar.patch |
|
175 | popping foo/bar.patch | |
173 | patch queue now empty |
|
176 | patch queue now empty |
General Comments 0
You need to be logged in to leave comments.
Login now