Show More
@@ -1430,8 +1430,12 b' def getgraphlogrevs(repo, pats, opts):' | |||||
1430 | # Default --rev value depends on --follow but --follow behaviour |
|
1430 | # Default --rev value depends on --follow but --follow behaviour | |
1431 | # depends on revisions resolved from --rev... |
|
1431 | # depends on revisions resolved from --rev... | |
1432 | follow = opts.get('follow') or opts.get('follow_first') |
|
1432 | follow = opts.get('follow') or opts.get('follow_first') | |
|
1433 | possiblyunsorted = False # whether revs might need sorting | |||
1433 | if opts.get('rev'): |
|
1434 | if opts.get('rev'): | |
1434 | revs = scmutil.revrange(repo, opts['rev']) |
|
1435 | revs = scmutil.revrange(repo, opts['rev']) | |
|
1436 | # Don't sort here because _makegraphlogrevset might depend on the | |||
|
1437 | # order of revs | |||
|
1438 | possiblyunsorted = True | |||
1435 | else: |
|
1439 | else: | |
1436 | if follow and len(repo) > 0: |
|
1440 | if follow and len(repo) > 0: | |
1437 | revs = repo.revs('reverse(:.)') |
|
1441 | revs = repo.revs('reverse(:.)') | |
@@ -1441,6 +1445,8 b' def getgraphlogrevs(repo, pats, opts):' | |||||
1441 | if not revs: |
|
1445 | if not revs: | |
1442 | return iter([]), None, None |
|
1446 | return iter([]), None, None | |
1443 | expr, filematcher = _makegraphlogrevset(repo, pats, opts, revs) |
|
1447 | expr, filematcher = _makegraphlogrevset(repo, pats, opts, revs) | |
|
1448 | if possiblyunsorted: | |||
|
1449 | revs.sort(reverse=True) | |||
1444 | if expr: |
|
1450 | if expr: | |
1445 | matcher = revset.match(repo.ui, expr) |
|
1451 | matcher = revset.match(repo.ui, expr) | |
1446 | revs = increasingrevs(repo, revs, matcher) |
|
1452 | revs = increasingrevs(repo, revs, matcher) |
General Comments 0
You need to be logged in to leave comments.
Login now