D6236: branchcache: lazily validate nodes in iteritems()
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Tue Apr 16 08:28:43 EDT 2019
pulkit updated this revision to Diff 14759.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6236?vs=14743&id=14759
REVISION DETAIL
https://phab.mercurial-scm.org/D6236
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
@@ -219,8 +219,9 @@
return key in self._entries
def iteritems(self):
- self._verifyall()
- return self._entries.iteritems()
+ for k, v in self._entries.iteritems():
+ self._verifybranch(k)
+ yield k, v
def hasbranch(self, label):
""" checks whether a branch of this name exists or not """
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list