Patchwork D6240: branchcache: only iterate over branches which needs to be verified

login
register
mail settings
Submitter phabricator
Date April 16, 2019, 2:54 p.m.
Message ID <02f367be119312e9ddf4211d9943699c@localhost.localdomain>
Download mbox | patch
Permalink /patch/39637/
State Not Applicable
Headers show

Comments

phabricator - April 16, 2019, 2:54 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG75e8e16ca107: branchcache: only iterate over branches which needs to be verified (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6240?vs=14758&id=14764

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

AFFECTED FILES
  mercurial/branchmap.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py
--- a/mercurial/branchmap.py
+++ b/mercurial/branchmap.py
@@ -200,7 +200,8 @@ 
 
     def _verifyall(self):
         """ verifies nodes of all the branches """
-        for b in self._entries:
+        needverification = set(self._entries.keys()) - self._verifiedbranches
+        for b in needverification:
             self._verifybranch(b)
 
     def __iter__(self):