diff -r c9f4ef967a1d -r 696ab1a24ae0 mercurial/templater.py --- a/mercurial/templater.py Thu Mar 12 23:08:16 2015 -0400 +++ b/mercurial/templater.py Thu Mar 12 23:11:15 2015 -0400 @@ -391,7 +391,7 @@ raw = args[0][1] ctx = mapping['ctx'] - repo = ctx._repo + repo = ctx.repo() def query(expr): m = revsetmod.match(repo.ui, expr)