Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 35547:b6dbc860570d
log: don't expand aliases in revset built from command options
Only -rREV should be rewritten with user aliases.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 04 Jan 2018 12:00:18 +0900 |
parents | 349bcd7fa670 |
children | b14c8bcfbad9 |
comparison
equal
deleted
inserted
replaced
35546:5e1d4ccab455 | 35547:b6dbc860570d |
---|---|
2521 # User-specified revs might be unsorted, but don't sort before | 2521 # User-specified revs might be unsorted, but don't sort before |
2522 # _makelogrevset because it might depend on the order of revs | 2522 # _makelogrevset because it might depend on the order of revs |
2523 if not (revs.isdescending() or revs.istopo()): | 2523 if not (revs.isdescending() or revs.istopo()): |
2524 revs.sort(reverse=True) | 2524 revs.sort(reverse=True) |
2525 if expr: | 2525 if expr: |
2526 matcher = revset.match(repo.ui, expr) | 2526 matcher = revset.match(None, expr) |
2527 revs = matcher(repo, revs) | 2527 revs = matcher(repo, revs) |
2528 if limit is not None: | 2528 if limit is not None: |
2529 revs = revs.slice(0, limit) | 2529 revs = revs.slice(0, limit) |
2530 return revs, expr, filematcher | 2530 return revs, expr, filematcher |
2531 | 2531 |