Mercurial > hg-stable
changeset 29104:b207653ada10
localrepo: remove a couple of local type aliases
The local aliases are unused now, and were confusing mypy's type
checker.
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 06 May 2016 11:31:29 -0400 |
parents | f2aa1c3e7e77 |
children | 548e9c8c2841 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Fri May 06 14:22:17 2016 -0400 +++ b/mercurial/localrepo.py Fri May 06 11:31:29 2016 -0400 @@ -57,12 +57,10 @@ ) release = lockmod.release -propertycache = util.propertycache urlerr = util.urlerr urlreq = util.urlreq -filecache = scmutil.filecache -class repofilecache(filecache): +class repofilecache(scmutil.filecache): """All filecache usage on repo are done for logic that should be unfiltered """ @@ -78,7 +76,7 @@ def join(self, obj, fname): return obj.sjoin(fname) -class unfilteredpropertycache(propertycache): +class unfilteredpropertycache(util.propertycache): """propertycache that apply to unfiltered repo only""" def __get__(self, repo, type=None): @@ -87,7 +85,7 @@ return super(unfilteredpropertycache, self).__get__(unfi) return getattr(unfi, self.name) -class filteredpropertycache(propertycache): +class filteredpropertycache(util.propertycache): """propertycache that must take filtering in account""" def cachevalue(self, obj, value):