changeset 3185:b3e103c388fc

mq: don't write applied patches into series twice in restore
author Brendan Cully <brendan@kublai.com>
date Wed, 27 Sep 2006 14:50:20 -0700
parents 87b7ae306d54
children 245bb70d7dfb
files hgext/mq.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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