Mercurial > hg-stable
diff mercurial/templatefuncs.py @ 37674:f83cb91b052e
revset: pass in lookup function instead of repo (API)
And document that it's only for legacy lookup. If we have a repo, we're
likely to do more things where that shouldn't be done.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 14 Apr 2018 12:57:32 +0900 |
parents | ebf139cbd4a1 |
children | e743b8524d60 |
line wrap: on
line diff
--- 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: