# HG changeset patch # User Pulkit Goyal # Date 1543324573 -10800 # Node ID df8ed31a8ad8ae116e31550d9128055ece22e258 # Parent 380a1f73830f0ac5925bf8a20c8c302df2176514 store: write fncache only once if there are both adds and removes Differential Revision: https://phab.mercurial-scm.org/D5307 diff -r 380a1f73830f -r df8ed31a8ad8 mercurial/store.py --- a/mercurial/store.py Tue Nov 20 17:44:24 2018 +0000 +++ b/mercurial/store.py Tue Nov 27 16:16:13 2018 +0300 @@ -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: