comparison 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
comparison
equal deleted inserted replaced
37673:0c6b1ec75b73 37674:f83cb91b052e
903 expand user aliases, specify ``user=True``. To provide some local 903 expand user aliases, specify ``user=True``. To provide some local
904 definitions overriding user aliases, set ``localalias`` to 904 definitions overriding user aliases, set ``localalias`` to
905 ``{name: definitionstring}``. 905 ``{name: definitionstring}``.
906 ''' 906 '''
907 if user: 907 if user:
908 m = revset.matchany(self.ui, specs, repo=self, 908 m = revset.matchany(self.ui, specs,
909 lookup=revset.lookupfn(self),
909 localalias=localalias) 910 localalias=localalias)
910 else: 911 else:
911 m = revset.matchany(None, specs, localalias=localalias) 912 m = revset.matchany(None, specs, localalias=localalias)
912 return m(self) 913 return m(self)
913 914