mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
graphmod: avoid sorting when already sorted
This is somewhat redundant now, but allows us to add a toposort that should not be re-sorted either.
This commit is contained in:
parent
7a668208b8
commit
747bfe58fe
@ -2147,7 +2147,8 @@ def getgraphlogrevs(repo, pats, opts):
|
||||
if opts.get('rev'):
|
||||
# User-specified revs might be unsorted, but don't sort before
|
||||
# _makelogrevset because it might depend on the order of revs
|
||||
revs.sort(reverse=True)
|
||||
if not revs.isdescending():
|
||||
revs.sort(reverse=True)
|
||||
if expr:
|
||||
# Revset matchers often operate faster on revisions in changelog
|
||||
# order, because most filters deal with the changelog.
|
||||
|
Loading…
Reference in New Issue
Block a user