comparison mercurial/revlog.py @ 25361:1635579f9baf

phases: fix bug where native phase computation wasn't called I forgot to include this change as a previous diff and the native code to compute the phases was never called. The AttributeError was silently caught and the pure implementation was used instead.
author Laurent Charignon <lcharignon@fb.com>
date Fri, 29 May 2015 14:24:50 -0700
parents 0ca8410ea345
children eee88912db0a
comparison
equal deleted inserted replaced
25360:7d24a41200d3 25361:1635579f9baf
724 return self.index.headrevs() 724 return self.index.headrevs()
725 except AttributeError: 725 except AttributeError:
726 return self._headrevs() 726 return self._headrevs()
727 727
728 def computephases(self, roots): 728 def computephases(self, roots):
729 return self.index.computephases(roots) 729 return self.index.computephasesmapsets(roots)
730 730
731 def _headrevs(self): 731 def _headrevs(self):
732 count = len(self) 732 count = len(self)
733 if not count: 733 if not count:
734 return [nullrev] 734 return [nullrev]