Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 34036:de286200f722
revset: move order argument to run-time match function
We no longer need the order flag to build a parsed tree.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 30 Aug 2017 22:41:36 +0900 |
parents | da07367d683b |
children | 205c47e30a93 |
line wrap: on
line diff
--- 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):