equal
deleted
inserted
replaced
37 |
37 |
38 class unfilteredpropertycache(propertycache): |
38 class unfilteredpropertycache(propertycache): |
39 """propertycache that apply to unfiltered repo only""" |
39 """propertycache that apply to unfiltered repo only""" |
40 |
40 |
41 def __get__(self, repo, type=None): |
41 def __get__(self, repo, type=None): |
|
42 if hasunfilteredcache(repo, self.name): |
|
43 return getattr(repo.unfiltered(), self.name) |
42 return super(unfilteredpropertycache, self).__get__(repo.unfiltered()) |
44 return super(unfilteredpropertycache, self).__get__(repo.unfiltered()) |
43 |
45 |
44 class filteredpropertycache(propertycache): |
46 class filteredpropertycache(propertycache): |
45 """propertycache that must take filtering in account""" |
47 """propertycache that must take filtering in account""" |
46 |
48 |