changeset 25926:996102be8b91

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.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 07 Aug 2015 21:31:16 +0900
parents cfc24c22454e
children 44da63623fca
files mercurial/revset.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)