--- a/mercurial/cmdutil.py Wed Aug 30 23:53:30 2017 +0900
+++ b/mercurial/cmdutil.py Wed Aug 30 22:41:36 2017 +0900
@@ -2558,8 +2558,8 @@
if not (revs.isdescending() or revs.istopo()):
revs.sort(reverse=True)
if expr:
- matcher = revset.match(repo.ui, expr, order=revset.followorder)
- revs = matcher(repo, revs)
+ matcher = revset.match(repo.ui, expr)
+ revs = matcher(repo, revs, order=revset.followorder)
if limit is not None:
limitedrevs = []
for idx, rev in enumerate(revs):
@@ -2584,8 +2584,8 @@
return smartset.baseset([]), None, None
expr, filematcher = _makelogrevset(repo, pats, opts, revs)
if expr:
- matcher = revset.match(repo.ui, expr, order=revset.followorder)
- revs = matcher(repo, revs)
+ matcher = revset.match(repo.ui, expr)
+ revs = matcher(repo, revs, order=revset.followorder)
if limit is not None:
limitedrevs = []
for idx, r in enumerate(revs):