comparison mercurial/revlog.py @ 24444:27e3ba73fbb1

phase: default to C implementation for phase computation
author Laurent Charignon <lcharignon@fb.com>
date Fri, 20 Mar 2015 11:14:27 -0700
parents 4bfe9f2d9761
children 59904edf0a5e
comparison
equal deleted inserted replaced
24443:539b3c7eea44 24444:27e3ba73fbb1
722 try: 722 try:
723 return self.index.headrevs() 723 return self.index.headrevs()
724 except AttributeError: 724 except AttributeError:
725 return self._headrevs() 725 return self._headrevs()
726 726
727 def computephases(self, roots):
728 return self.index.computephases(roots)
729
727 def _headrevs(self): 730 def _headrevs(self):
728 count = len(self) 731 count = len(self)
729 if not count: 732 if not count:
730 return [nullrev] 733 return [nullrev]
731 # we won't iter over filtered rev so nobody is a head at start 734 # we won't iter over filtered rev so nobody is a head at start