hgext/mq.py
changeset 12655 5192b24f309c
parent 12590 663d96f33367
child 12658 97d7ee445e98
--- a/hgext/mq.py	Sat Oct 09 09:55:52 2010 -0500
+++ b/hgext/mq.py	Sat Oct 09 10:36:50 2010 -0500
@@ -765,7 +765,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)
+            if patch not in realpatches:
+                realpatches.append(patch)
 
         numrevs = 0
         if opts.get('rev'):