##// END OF EJS Templates
mq: handle deleting the same patch twice in one command (issue2427)
Dan Villiom Podlaski Christiansen -
r12655:5192b24f default
parent child Browse files
Show More
@@ -765,7 +765,8 b' class queue(object):'
765 raise util.Abort(_("cannot delete applied patch %s") % patch)
765 raise util.Abort(_("cannot delete applied patch %s") % patch)
766 if patch not in self.series:
766 if patch not in self.series:
767 raise util.Abort(_("patch %s not in series file") % patch)
767 raise util.Abort(_("patch %s not in series file") % patch)
768 realpatches.append(patch)
768 if patch not in realpatches:
769 realpatches.append(patch)
769
770
770 numrevs = 0
771 numrevs = 0
771 if opts.get('rev'):
772 if opts.get('rev'):
@@ -24,7 +24,9 b''
24 popping c
24 popping c
25 now at: b
25 now at: b
26
26
27 $ hg qdel c
27 Delete the same patch twice in one command (issue2427)
28
29 $ hg qdel c c
28
30
29 $ hg qseries
31 $ hg qseries
30 a
32 a
General Comments 0
You need to be logged in to leave comments. Login now