Patchwork D6290: branchcache: don't verify all nodes while writing

login
register
mail settings
Submitter phabricator
Date April 21, 2019, 9:49 a.m.
Message ID <6ad014b67eeb9e2572b0c13256403ca2@localhost.localdomain>
Download mbox | patch
Permalink /patch/39776/
State Not Applicable
Headers show

Comments

phabricator - April 21, 2019, 9:49 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG07faf5c65190: branchcache: don&#039;t verify all nodes while writing (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6290?vs=14869&id=14873

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

AFFECTED FILES
  mercurial/branchmap.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py
--- a/mercurial/branchmap.py
+++ b/mercurial/branchmap.py
@@ -341,7 +341,7 @@ 
                 cachekey.append(hex(self.filteredhash))
             f.write(" ".join(cachekey) + '\n')
             nodecount = 0
-            for label, nodes in sorted(self.iteritems()):
+            for label, nodes in sorted(self._entries.iteritems()):
                 label = encoding.fromlocal(label)
                 for node in nodes:
                     nodecount += 1