log: flag topo-sorted set as such
authorYuya Nishihara <yuya@tcha.org>
Thu, 16 May 2019 08:15:20 +0900
changeset 42319 b162229ebe0d
parent 42318 313812cbf4ca
child 42325 526750cdd02d
log: flag topo-sorted set as such This isn't required right now, but revs.istopo() should return True.
mercurial/logcmdutil.py
--- a/mercurial/logcmdutil.py	Wed Jan 09 15:54:45 2019 -0800
+++ b/mercurial/logcmdutil.py	Thu May 16 08:15:20 2019 +0900
@@ -750,7 +750,7 @@
             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: