mq: don't write applied patches into series twice in restore
authorBrendan Cully <brendan@kublai.com>
Wed, 27 Sep 2006 14:50:20 -0700
changeset 3185 b3e103c388fc
parent 3184 87b7ae306d54
child 3186 245bb70d7dfb
mq: don't write applied patches into series twice in restore
hgext/mq.py
--- a/hgext/mq.py	Wed Sep 27 14:32:53 2006 -0700
+++ b/hgext/mq.py	Wed Sep 27 14:50:20 2006 -0700
@@ -1151,7 +1151,8 @@
                 file_ = se.name
                 if se.rev:
                     applied.append(se)
-                series.append(file_)
+                else:
+                    series.append(file_)
         if datastart == None:
             self.ui.warn("No saved patch data found\n")
             return 1