D5307: store: write fncache only once if there are both adds and removes

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Nov 27 13:44:03 UTC 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdf8ed31a8ad8: store: write fncache only once if there are both adds and removes (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5307?vs=12609&id=12611

REVISION DETAIL
  https://phab.mercurial-scm.org/D5307

AFFECTED FILES
  mercurial/store.py

CHANGE DETAILS

diff --git a/mercurial/store.py b/mercurial/store.py
--- a/mercurial/store.py
+++ b/mercurial/store.py
@@ -475,6 +475,8 @@
     def write(self, tr):
         if self._dirty:
             assert self.entries is not None
+            self.entries = self.entries | self.addls
+            self.addls = set()
             tr.addbackup('fncache')
             fp = self.vfs('fncache', mode='wb', atomictemp=True)
             if self.entries:



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list