branchcache: don't verify while creating a copy
authorPulkit Goyal <pulkit@yandex-team.ru>
Tue, 16 Apr 2019 14:39:14 +0300
changeset 42131 b26455ffa7fa
parent 42130 a362b0b95e42
child 42132 d9dc0896e1d3
branchcache: don't verify while creating a copy The copy will not be mark as verified, so there is no need to verify nodes. Thanks to Yuya who spotted this while reviewing. Differential Revision: https://phab.mercurial-scm.org/D6238
mercurial/branchmap.py
--- a/mercurial/branchmap.py	Fri Apr 05 14:35:33 2019 +0200
+++ b/mercurial/branchmap.py	Tue Apr 16 14:39:14 2019 +0300
@@ -339,7 +339,6 @@
 
     def copy(self):
         """return an deep copy of the branchcache object"""
-        self._verifyall()
         return type(self)(
             self._entries, self.tipnode, self.tiprev, self.filteredhash,
             self._closednodes)