mercurial/revlog.py
changeset 17674 e69274f8d444
parent 17673 d686c6876ef6
child 17951 6f79c32c0bdf
equal deleted inserted replaced
17673:d686c6876ef6 17674:e69274f8d444
   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)