# HG changeset patch # User Martin Geisler # Date 1274655342 -7200 # Node ID 1abd9442727c09776181d58a178edf721c11aa72 # Parent ebc90fd4ebc009c72cf94094390c001e41c7b544 mq: remove unneeded local variable in delete diff -r ebc90fd4ebc0 -r 1abd9442727c hgext/mq.py --- a/hgext/mq.py Wed May 19 09:54:12 2010 -0500 +++ b/hgext/mq.py Mon May 24 00:55:42 2010 +0200 @@ -741,7 +741,6 @@ raise util.Abort(_('qdelete requires at least one revision or ' 'patch name')) - realpatches = [] for patch in patches: patch = self.lookup(patch, strict=True) info = self.isapplied(patch) @@ -749,8 +748,8 @@ raise util.Abort(_("cannot delete applied patch %s") % patch) if patch not in self.series: raise util.Abort(_("patch %s not in series file") % patch) - realpatches.append(patch) + patches = list(patches) numrevs = 0 if opts.get('rev'): if not self.applied: @@ -759,10 +758,10 @@ if len(revs) > 1 and revs[0] > revs[1]: revs.reverse() revpatches = self._revpatches(repo, revs) - realpatches += revpatches + patches += revpatches numrevs = len(revpatches) - self._cleanup(realpatches, numrevs, opts.get('keep')) + self._cleanup(patches, numrevs, opts.get('keep')) def check_toppatch(self, repo): if self.applied: