##// END OF EJS Templates
mq: require patch argument or revision for qdelete
Brendan Cully -
r4736:04b2c1e2 default
parent child Browse files
Show More
@@ -532,6 +532,9 b' class queue:'
532 return (err, n)
532 return (err, n)
533
533
534 def delete(self, repo, patches, opts):
534 def delete(self, repo, patches, opts):
535 if not patches and not opts.get('rev'):
536 raise util.Abort(_('missing patch name'))
537
535 realpatches = []
538 realpatches = []
536 for patch in patches:
539 for patch in patches:
537 patch = self.lookup(patch, strict=True)
540 patch = self.lookup(patch, strict=True)
@@ -13,6 +13,8 b' hg qnew a'
13 hg qnew b
13 hg qnew b
14 hg qnew c
14 hg qnew c
15
15
16 hg qdel
17
16 hg qdel c
18 hg qdel c
17 hg qpop
19 hg qpop
18 hg qdel c
20 hg qdel c
@@ -1,4 +1,5 b''
1 adding base
1 adding base
2 abort: missing patch name
2 abort: cannot delete applied patch c
3 abort: cannot delete applied patch c
3 Now at: b
4 Now at: b
4 a
5 a
General Comments 0
You need to be logged in to leave comments. Login now