revset: split post-parsing stage from match()
authorYuya Nishihara <yuya@tcha.org>
Fri, 07 Aug 2015 21:31:16 +0900
changeset 25926 996102be8b91
parent 25924 cfc24c22454e
child 25927 44da63623fca
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.
mercurial/revset.py
--- 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)