Show More
@@ -898,14 +898,13 b' def getrevs(repo, pats, opts):' | |||
|
898 | 898 | |
|
899 | 899 | expr = _makerevset(repo, match, pats, slowpath, opts) |
|
900 | 900 | if opts.get(b'graph'): |
|
901 | # User-specified revs might be unsorted, but don't sort before | |
|
902 | # _makerevset because it might depend on the order of revs | |
|
903 | 901 | if repo.ui.configbool(b'experimental', b'log.topo'): |
|
904 | 902 | if not revs.istopo(): |
|
905 | 903 | revs = dagop.toposort(revs, repo.changelog.parentrevs) |
|
906 | 904 | # TODO: try to iterate the set lazily |
|
907 | 905 | revs = revset.baseset(list(revs), istopo=True) |
|
908 | 906 | elif not (revs.isdescending() or revs.istopo()): |
|
907 | # User-specified revs might be unsorted | |
|
909 | 908 | revs.sort(reverse=True) |
|
910 | 909 | if expr: |
|
911 | 910 | matcher = revset.match(None, expr) |
General Comments 0
You need to be logged in to leave comments.
Login now