Mercurial > hg
diff tests/test-revset.t @ 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 | e32dfff71529 |
children | 29eb4cafeeb8 |
line wrap: on
line diff
--- a/tests/test-revset.t Sat Apr 14 12:44:40 2018 +0900 +++ b/tests/test-revset.t Sat Apr 14 12:57:32 2018 +0900 @@ -60,7 +60,7 @@ > opttree = revsetlang.optimize(revsetlang.analyze(tree)) > ui.note(b"* optimized:\n", revsetlang.prettyformat(opttree), > b"\n") - > func = revset.match(ui, expr, repo) + > func = revset.match(ui, expr, lookup=revset.lookupfn(repo)) > revs = func(repo) > if ui.verbose: > ui.note(b"* set:\n", smartset.prettyformat(revs), b"\n")