##// END OF EJS Templates
localrepo: remove a couple of local type aliases...
Augie Fackler -
r29104:b207653a default
parent child Browse files
Show More
@@ -57,12 +57,10 b' from . import ('
57 )
57 )
58
58
59 release = lockmod.release
59 release = lockmod.release
60 propertycache = util.propertycache
61 urlerr = util.urlerr
60 urlerr = util.urlerr
62 urlreq = util.urlreq
61 urlreq = util.urlreq
63 filecache = scmutil.filecache
64
62
65 class repofilecache(filecache):
63 class repofilecache(scmutil.filecache):
66 """All filecache usage on repo are done for logic that should be unfiltered
64 """All filecache usage on repo are done for logic that should be unfiltered
67 """
65 """
68
66
@@ -78,7 +76,7 b' class storecache(repofilecache):'
78 def join(self, obj, fname):
76 def join(self, obj, fname):
79 return obj.sjoin(fname)
77 return obj.sjoin(fname)
80
78
81 class unfilteredpropertycache(propertycache):
79 class unfilteredpropertycache(util.propertycache):
82 """propertycache that apply to unfiltered repo only"""
80 """propertycache that apply to unfiltered repo only"""
83
81
84 def __get__(self, repo, type=None):
82 def __get__(self, repo, type=None):
@@ -87,7 +85,7 b' class unfilteredpropertycache(propertyca'
87 return super(unfilteredpropertycache, self).__get__(unfi)
85 return super(unfilteredpropertycache, self).__get__(unfi)
88 return getattr(unfi, self.name)
86 return getattr(unfi, self.name)
89
87
90 class filteredpropertycache(propertycache):
88 class filteredpropertycache(util.propertycache):
91 """propertycache that must take filtering in account"""
89 """propertycache that must take filtering in account"""
92
90
93 def cachevalue(self, obj, value):
91 def cachevalue(self, obj, value):
General Comments 0
You need to be logged in to leave comments. Login now