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

login
register
mail settings
Submitter phabricator
Date Nov. 27, 2018, 1:44 p.m.
Message ID <9fa2bdd86d2f6e06d8d84d3296e206c5@localhost.localdomain>
Download mbox | patch
Permalink /patch/36818/
State Not Applicable
Headers show

Comments

phabricator - Nov. 27, 2018, 1:44 p.m.
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




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

Patch

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: