Submitter | Stanislau Hlebik |
---|---|
Date | Feb. 13, 2017, 10:32 a.m. |
Message ID | <30fd6051a7e441aac16b.1486981978@devvm1840.lla2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/18437/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1854,7 +1854,7 @@ def heads(self, start=None): if start is None: cl = self.changelog - headrevs = sorted(cl.headrevs(), reverse=True) + headrevs = reversed(cl.headrevs()) return [cl.node(rev) for rev in headrevs] heads = self.changelog.heads(start)