mercurial/branchmap.py
changeset 42123 be5eeaf5c24a
parent 42122 7c9d4cf23adf
child 42126 ef0e3cc684b3
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