mercurial/templatefuncs.py
changeset 37674 f83cb91b052e
parent 37327 ebf139cbd4a1
child 37680 e743b8524d60
--- a/mercurial/templatefuncs.py	Sat Apr 14 12:44:40 2018 +0900
+++ b/mercurial/templatefuncs.py	Sat Apr 14 12:57:32 2018 +0900
@@ -522,7 +522,7 @@
     repo = ctx.repo()
 
     def query(expr):
-        m = revsetmod.match(repo.ui, expr, repo=repo)
+        m = revsetmod.match(repo.ui, expr, lookup=revsetmod.lookupfn(repo))
         return m(repo)
 
     if len(args) > 1: