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