changeset 15883:91d99f02b26f

mq: only save dirty files once when savedirty is called multiple times
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 11 Jan 2012 02:29:56 +0100
parents fb63930592d6
children cc8287d51680
files hgext/mq.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Wed Jan 11 02:29:56 2012 +0100
+++ b/hgext/mq.py	Wed Jan 11 02:29:56 2012 +0100
@@ -503,10 +503,13 @@
             fp.close()
         if self.applieddirty:
             writelist(map(str, self.applied), self.statuspath)
+            self.applieddirty = False
         if self.seriesdirty:
             writelist(self.fullseries, self.seriespath)
+            self.seriesdirty = False
         if self.guardsdirty:
             writelist(self.activeguards, self.guardspath)
+            self.guardsdirty = False
         if self.added:
             qrepo = self.qrepo()
             if qrepo: