comparison mercurial/branchmap.py @ 42123:be5eeaf5c24a

branchcache: don't verify closed nodes in _branchtip() We only do membership testing there. Differential Revision: https://phab.mercurial-scm.org/D6210
author Pulkit Goyal <pulkit@yandex-team.ru>
date Fri, 05 Apr 2019 15:57:09 +0300
parents 7c9d4cf23adf
children ef0e3cc684b3
comparison
equal deleted inserted replaced
42122:7c9d4cf23adf 42123:be5eeaf5c24a
302 def _branchtip(self, heads): 302 def _branchtip(self, heads):
303 '''Return tuple with last open head in heads and false, 303 '''Return tuple with last open head in heads and false,
304 otherwise return last closed head and true.''' 304 otherwise return last closed head and true.'''
305 tip = heads[-1] 305 tip = heads[-1]
306 closed = True 306 closed = True
307 self._verifyclosed()
308 for h in reversed(heads): 307 for h in reversed(heads):
309 if h not in self._closednodes: 308 if h not in self._closednodes:
310 tip = h 309 tip = h
311 closed = False 310 closed = False
312 break 311 break