# HG changeset patch # User Augie Fackler # Date 2016-05-06 15:31:29 # Node ID b207653ada105e26c3590fe09d316c87b81c5874 # Parent f2aa1c3e7e774f9849e15b1e6890e30d6ecfeb3c localrepo: remove a couple of local type aliases The local aliases are unused now, and were confusing mypy's type checker. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -57,12 +57,10 @@ from . import ( ) 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 @@ class storecache(repofilecache): 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 @@ class unfilteredpropertycache(propertyca 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):