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: |
General Comments 0
You need to be logged in to leave comments.
Login now