##// END OF EJS Templates
localrepo: avoid unnecessary conversion from node to rev...
Stanislau Hlebik -
r30875:1791be8a default
parent child Browse files
Show More
@@ -1852,6 +1852,10 b' class localrepository(object):'
1852 listsubrepos)
1852 listsubrepos)
1853
1853
1854 def heads(self, start=None):
1854 def heads(self, start=None):
1855 if start is None:
1856 headrevs = sorted(self.changelog.headrevs(), reverse=True)
1857 return [self.changelog.node(rev) for rev in headrevs]
1858
1855 heads = self.changelog.heads(start)
1859 heads = self.changelog.heads(start)
1856 # sort the output in rev descending order
1860 # sort the output in rev descending order
1857 return sorted(heads, key=self.changelog.rev, reverse=True)
1861 return sorted(heads, key=self.changelog.rev, reverse=True)
General Comments 0
You need to be logged in to leave comments. Login now