changeset 30875 | 1791be8a95c5 |
parent 30818 | 4c0a5a256ae8 |
child 30905 | 6037caa6a2f3 |
--- a/mercurial/localrepo.py Thu Feb 02 14:19:48 2017 +0100 +++ b/mercurial/localrepo.py Thu Feb 02 02:56:38 2017 -0800 @@ -1852,6 +1852,10 @@ listsubrepos) def heads(self, start=None): + if start is None: + headrevs = sorted(self.changelog.headrevs(), reverse=True) + return [self.changelog.node(rev) for rev in headrevs] + heads = self.changelog.heads(start) # sort the output in rev descending order return sorted(heads, key=self.changelog.rev, reverse=True)