diff 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
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sun Oct 22 22:52:36 2017 +0900
+++ b/mercurial/cmdutil.py	Thu Jan 04 12:00:18 2018 +0900
@@ -2523,7 +2523,7 @@
         if not (revs.isdescending() or revs.istopo()):
             revs.sort(reverse=True)
     if expr:
-        matcher = revset.match(repo.ui, expr)
+        matcher = revset.match(None, expr)
         revs = matcher(repo, revs)
     if limit is not None:
         revs = revs.slice(0, limit)