# HG changeset patch # User Yuya Nishihara # Date 2015-08-07 12:31:16 # Node ID 996102be8b91958a65be1515424af1b655ef0d7e # Parent cfc24c22454e1f63b88309e1607bd9afe1d550cc revset: split post-parsing stage from match() _makematcher() will be reused by new matchany(ui, specs, repo=None) function I'll add by the next patch. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2667,6 +2667,9 @@ def match(ui, spec, repo=None): if repo: lookup = repo.__contains__ tree = parse(spec, lookup) + return _makematcher(ui, tree, repo) + +def _makematcher(ui, tree, repo): if ui: tree = findaliases(ui, tree, showwarning=ui.warn) tree = foldconcat(tree)