# HG changeset patch # User Pulkit Goyal # Date 2018-11-27 13:16:13 # 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 --git a/mercurial/store.py b/mercurial/store.py --- a/mercurial/store.py +++ b/mercurial/store.py @@ -475,6 +475,8 @@ class fncache(object): 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: