# HG changeset patch # User Yuya Nishihara # Date 2018-04-14 03:44:40 # Node ID 0c6b1ec75b73509481fdedf0d72003c395eccbe4 # Parent 8bacc09814ba5500d15fb40c472e84cb95ae2f99 revset: drop support for posttreebuilthook() (API) AFAIK, the only user was the directaccess extension, which is in core now. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2166,10 +2166,6 @@ methods = { "parentpost": parentpost, } -def posttreebuilthook(tree, repo): - # hook for extensions to execute code on the optimized tree - pass - def lookupfn(repo): return lambda symbol: scmutil.isrevsymbol(repo, symbol) @@ -2211,7 +2207,6 @@ def matchany(ui, specs, repo=None, local tree = revsetlang.foldconcat(tree) tree = revsetlang.analyze(tree) tree = revsetlang.optimize(tree) - posttreebuilthook(tree, repo) return makematcher(tree) def makematcher(tree):