##// END OF EJS Templates
mq: make 'qdelete <patchidx>' work again....
Greg Ward -
r11365:c3d7daa0 default
parent child Browse files
Show More
@@ -752,6 +752,7 b' class queue(object):'
752 752 raise util.Abort(_('qdelete requires at least one revision or '
753 753 'patch name'))
754 754
755 realpatches = []
755 756 for patch in patches:
756 757 patch = self.lookup(patch, strict=True)
757 758 info = self.isapplied(patch)
@@ -759,8 +760,8 b' class queue(object):'
759 760 raise util.Abort(_("cannot delete applied patch %s") % patch)
760 761 if patch not in self.series:
761 762 raise util.Abort(_("patch %s not in series file") % patch)
763 realpatches.append(patch)
762 764
763 patches = list(patches)
764 765 numrevs = 0
765 766 if opts.get('rev'):
766 767 if not self.applied:
@@ -769,10 +770,10 b' class queue(object):'
769 770 if len(revs) > 1 and revs[0] > revs[1]:
770 771 revs.reverse()
771 772 revpatches = self._revpatches(repo, revs)
772 patches += revpatches
773 realpatches += revpatches
773 774 numrevs = len(revpatches)
774 775
775 self._cleanup(patches, numrevs, opts.get('keep'))
776 self._cleanup(realpatches, numrevs, opts.get('keep'))
776 777
777 778 def check_toppatch(self, repo):
778 779 if self.applied:
@@ -21,7 +21,7 b' hg qdel c'
21 21 hg qseries
22 22 ls .hg/patches
23 23 hg qpop
24 hg qdel -k b
24 hg qdel -k 1
25 25 ls .hg/patches
26 26 hg qdel -r a
27 27 hg qapplied
General Comments 0
You need to be logged in to leave comments. Login now