Mercurial > hg
diff tests/test-revset.t @ 37350:e32dfff71529
revset: use revsymbol() for checking if a symbol is valid
Differential Revision: https://phab.mercurial-scm.org/D3078
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 01 Apr 2018 22:48:32 -0700 |
parents | 2a258985ffeb |
children | f83cb91b052e |
line wrap: on
line diff
--- a/tests/test-revset.t Tue Apr 03 15:08:14 2018 -0700 +++ b/tests/test-revset.t Sun Apr 01 22:48:32 2018 -0700 @@ -54,7 +54,7 @@ > args = map(nodemod.bin, args) > expr = revsetlang.formatspec(fmt, list(args)) > if ui.verbose: - > tree = revsetlang.parse(expr, lookup=repo.__contains__) + > tree = revsetlang.parse(expr, lookup=revset.lookupfn(repo)) > ui.note(revsetlang.prettyformat(tree), b"\n") > if opts["optimize"]: > opttree = revsetlang.optimize(revsetlang.analyze(tree))