# HG changeset patch # User Yuya Nishihara # Date 2019-05-15 23:15:20 # Node ID b162229ebe0de1cac21b8287ecee5f2ef0a9d530 # Parent 313812cbf4ca14a47f3b1e4fb4330be8fdd4167c log: flag topo-sorted set as such This isn't required right now, but revs.istopo() should return True. diff --git a/mercurial/logcmdutil.py b/mercurial/logcmdutil.py --- a/mercurial/logcmdutil.py +++ b/mercurial/logcmdutil.py @@ -750,7 +750,7 @@ def getrevs(repo, pats, opts): if not revs.istopo(): revs = dagop.toposort(revs, repo.changelog.parentrevs) # TODO: try to iterate the set lazily - revs = revset.baseset(list(revs)) + revs = revset.baseset(list(revs), istopo=True) elif not (revs.isdescending() or revs.istopo()): revs.sort(reverse=True) if expr: