Mercurial > public > mercurial-scm > hg
comparison mercurial/branchmap.py @ 42131:b26455ffa7fa
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
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Tue, 16 Apr 2019 14:39:14 +0300 |
parents | ef0e3cc684b3 |
children | d9dc0896e1d3 |
comparison
equal
deleted
inserted
replaced
42130:a362b0b95e42 | 42131:b26455ffa7fa |
---|---|
337 self._verifyall() | 337 self._verifyall() |
338 return self._entries.itervalues() | 338 return self._entries.itervalues() |
339 | 339 |
340 def copy(self): | 340 def copy(self): |
341 """return an deep copy of the branchcache object""" | 341 """return an deep copy of the branchcache object""" |
342 self._verifyall() | |
343 return type(self)( | 342 return type(self)( |
344 self._entries, self.tipnode, self.tiprev, self.filteredhash, | 343 self._entries, self.tipnode, self.tiprev, self.filteredhash, |
345 self._closednodes) | 344 self._closednodes) |
346 | 345 |
347 def write(self, repo): | 346 def write(self, repo): |