[PATCH 11 of 19] mq: only save dirty files once when savedirty is called multiple times

Mads Kiilerich mads at kiilerich.com
Thu Jan 12 19:32:45 CST 2012


# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1326245396 -3600
# Node ID 5ac878154e85a6ec40cbf49f57a66e7527c2c41e
# Parent  1e3b731e80e32b016020932cea4e491bac2ba8f7
mq: only save dirty files once when savedirty is called multiple times

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -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:


More information about the Mercurial-devel mailing list