equal
deleted
inserted
replaced
605 |
605 |
606 def headrevs(self): |
606 def headrevs(self): |
607 try: |
607 try: |
608 return self.index.headrevs() |
608 return self.index.headrevs() |
609 except AttributeError: |
609 except AttributeError: |
610 pass |
610 return self._headrevs() |
|
611 |
|
612 def _headrevs(self): |
611 count = len(self) |
613 count = len(self) |
612 if not count: |
614 if not count: |
613 return [nullrev] |
615 return [nullrev] |
614 # we won't iter over filtered rev so nobody is a head at start |
616 # we won't iter over filtered rev so nobody is a head at start |
615 ishead = [0] * (count + 1) |
617 ishead = [0] * (count + 1) |