Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.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 | 719b8cb22936 |
children | 0664be4f0c1f |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat Apr 14 12:44:40 2018 +0900 +++ b/mercurial/localrepo.py Sat Apr 14 12:57:32 2018 +0900 @@ -905,7 +905,8 @@ ``{name: definitionstring}``. ''' if user: - m = revset.matchany(self.ui, specs, repo=self, + m = revset.matchany(self.ui, specs, + lookup=revset.lookupfn(self), localalias=localalias) else: m = revset.matchany(None, specs, localalias=localalias)