changeset 37673:0c6b1ec75b73

revset: drop support for posttreebuilthook() (API) AFAIK, the only user was the directaccess extension, which is in core now.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 14 Apr 2018 12:44:40 +0900
parents 8bacc09814ba
children f83cb91b052e
files mercurial/revset.py
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Sat Apr 14 02:07:42 2018 +0530
+++ b/mercurial/revset.py	Sat Apr 14 12:44:40 2018 +0900
@@ -2166,10 +2166,6 @@
     "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 @@
     tree = revsetlang.foldconcat(tree)
     tree = revsetlang.analyze(tree)
     tree = revsetlang.optimize(tree)
-    posttreebuilthook(tree, repo)
     return makematcher(tree)
 
 def makematcher(tree):