##// END OF EJS Templates
graphmod: avoid sorting when already sorted...
Martijn Pieters -
r29335:63161726 default
parent child Browse files
Show More
@@ -2147,6 +2147,7 b' def getgraphlogrevs(repo, pats, opts):'
2147 if opts.get('rev'):
2147 if opts.get('rev'):
2148 # User-specified revs might be unsorted, but don't sort before
2148 # User-specified revs might be unsorted, but don't sort before
2149 # _makelogrevset because it might depend on the order of revs
2149 # _makelogrevset because it might depend on the order of revs
2150 if not revs.isdescending():
2150 revs.sort(reverse=True)
2151 revs.sort(reverse=True)
2151 if expr:
2152 if expr:
2152 # Revset matchers often operate faster on revisions in changelog
2153 # Revset matchers often operate faster on revisions in changelog
General Comments 0
You need to be logged in to leave comments. Login now