Show More
@@ -2493,6 +2493,10 b' def parse(spec, lookup=None):' | |||||
2493 | p = parser.parser(tokenize, elements) |
|
2493 | p = parser.parser(tokenize, elements) | |
2494 | return p.parse(spec, lookup=lookup) |
|
2494 | return p.parse(spec, lookup=lookup) | |
2495 |
|
2495 | |||
|
2496 | def posttreebuilthook(tree, repo): | |||
|
2497 | # hook for extensions to execute code on the optimized tree | |||
|
2498 | pass | |||
|
2499 | ||||
2496 | def match(ui, spec, repo=None): |
|
2500 | def match(ui, spec, repo=None): | |
2497 | if not spec: |
|
2501 | if not spec: | |
2498 | raise error.ParseError(_("empty query")) |
|
2502 | raise error.ParseError(_("empty query")) | |
@@ -2506,6 +2510,7 b' def match(ui, spec, repo=None):' | |||||
2506 | tree = findaliases(ui, tree, showwarning=ui.warn) |
|
2510 | tree = findaliases(ui, tree, showwarning=ui.warn) | |
2507 | tree = foldconcat(tree) |
|
2511 | tree = foldconcat(tree) | |
2508 | weight, tree = optimize(tree, True) |
|
2512 | weight, tree = optimize(tree, True) | |
|
2513 | posttreebuilthook(tree, repo) | |||
2509 | def mfunc(repo, subset=None): |
|
2514 | def mfunc(repo, subset=None): | |
2510 | if subset is None: |
|
2515 | if subset is None: | |
2511 | subset = fullreposet(repo) |
|
2516 | subset = fullreposet(repo) |
General Comments 0
You need to be logged in to leave comments.
Login now