Show More
@@ -2615,15 +2615,17 def matchany(ui, specs, repo=None): | |||
|
2615 | 2615 | tree = parse(specs[0], lookup) |
|
2616 | 2616 | else: |
|
2617 | 2617 | tree = ('or',) + tuple(parse(s, lookup) for s in specs) |
|
2618 | return _makematcher(ui, tree, repo) | |
|
2619 | ||
|
2620 | def _makematcher(ui, tree, repo): | |
|
2618 | ||
|
2621 | 2619 | if ui: |
|
2622 | 2620 | tree = expandaliases(ui, tree, showwarning=ui.warn) |
|
2623 | 2621 | tree = foldconcat(tree) |
|
2624 | 2622 | tree = analyze(tree) |
|
2625 | 2623 | tree = optimize(tree) |
|
2626 | 2624 | posttreebuilthook(tree, repo) |
|
2625 | return makematcher(tree) | |
|
2626 | ||
|
2627 | def makematcher(tree): | |
|
2628 | """Create a matcher from an evaluatable tree""" | |
|
2627 | 2629 | def mfunc(repo, subset=None): |
|
2628 | 2630 | if subset is None: |
|
2629 | 2631 | subset = fullreposet(repo) |
General Comments 0
You need to be logged in to leave comments.
Login now