##// END OF EJS Templates
branchcache: drop the unused `_verifyclosed`...
marmoute -
r52349:19b2736c default
parent child Browse files
Show More
@@ -438,8 +438,6 b' class branchcache(_BaseBranchCache):'
438
438
439 # Do we need to verify branch at all ?
439 # Do we need to verify branch at all ?
440 self._verify_node = verify_node
440 self._verify_node = verify_node
441 # whether closed nodes are verified or not
442 self._closedverified = False
443 # branches for which nodes are verified
441 # branches for which nodes are verified
444 self._verifiedbranches = set()
442 self._verifiedbranches = set()
445 self._hasnode = None
443 self._hasnode = None
@@ -553,7 +551,6 b' class branchcache(_BaseBranchCache):'
553 # to hurt to overschedule
551 # to hurt to overschedule
554 other._delayed = self._delayed
552 other._delayed = self._delayed
555 # also copy information about the current verification state
553 # also copy information about the current verification state
556 other._closedverified = self._closedverified
557 other._verifiedbranches = set(self._verifiedbranches)
554 other._verifiedbranches = set(self._verifiedbranches)
558 return other
555 return other
559
556
@@ -601,19 +598,6 b' class branchcache(_BaseBranchCache):'
601 % stringutil.forcebytestr(inst)
598 % stringutil.forcebytestr(inst)
602 )
599 )
603
600
604 def _verifyclosed(self):
605 """verify the closed nodes we have"""
606 if not self._verify_node:
607 return
608 if self._closedverified:
609 return
610 assert self._hasnode is not None
611 for node in self._closednodes:
612 if not self._hasnode(node):
613 _unknownnode(node)
614
615 self._closedverified = True
616
617 def _verifybranch(self, branch):
601 def _verifybranch(self, branch):
618 """verify head nodes for the given branch."""
602 """verify head nodes for the given branch."""
619 if not self._verify_node:
603 if not self._verify_node:
General Comments 0
You need to be logged in to leave comments. Login now