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