changeset 42122:7c9d4cf23adf

branchcache: don't verify closed nodes in iteropen() We expect that the nodes passed to iteropen() will be verified. We are only testing for membership in closed nodes set, so we don't need to verify the whole closed nodes set. This will speed up calculating branchheads() when there are lot of closed nodes related to other branches. Differential Revision: https://phab.mercurial-scm.org/D6209
author Pulkit Goyal <pulkit@yandex-team.ru>
date Fri, 05 Apr 2019 15:56:33 +0300
parents 6578654916ae
children be5eeaf5c24a
files mercurial/branchmap.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/branchmap.py	Mon Apr 01 13:56:47 2019 +0300
+++ b/mercurial/branchmap.py	Fri Apr 05 15:56:33 2019 +0300
@@ -319,7 +319,6 @@
         return self._branchtip(self[branch])[0]
 
     def iteropen(self, nodes):
-        self._verifyclosed()
         return (n for n in nodes if n not in self._closednodes)
 
     def branchheads(self, branch, closed=False):