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.
--- a/mercurial/revset.py Sat Aug 08 00:41:13 2015 -0700
+++ b/mercurial/revset.py Fri Aug 07 21:31:16 2015 +0900
@@ -2667,6 +2667,9 @@
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)