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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Apr 16 10:54:26 EDT 2019


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

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):



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


More information about the Mercurial-devel mailing list