hgext/mq.py
branchstable
changeset 11438 88fc876a4833
parent 11375 0f33abfccaa1
child 11439 778377be3662
--- a/hgext/mq.py	Wed Jun 23 17:50:27 2010 -0300
+++ b/hgext/mq.py	Tue Jun 22 09:49:51 2010 +0200
@@ -1046,10 +1046,12 @@
 
             if move:
                 try:
-                    del self.full_series[self.full_series.index(patch, start)]
+                    index = self.series.index(patch, start)
+                    fullpatch = self.full_series[index]
+                    del self.full_series[index]
                 except ValueError:
                     raise util.Abort(_("patch '%s' not found") % patch)
-                self.full_series.insert(start, patch)
+                self.full_series.insert(start, fullpatch)
                 self.parse_series()
                 self.series_dirty = 1