--- a/mercurial/localrepo.py Tue Oct 01 10:44:59 2013 -0700
+++ b/mercurial/localrepo.py Tue Oct 01 17:00:03 2013 -0700
@@ -39,9 +39,10 @@
"""propertycache that apply to unfiltered repo only"""
def __get__(self, repo, type=None):
- if hasunfilteredcache(repo, self.name):
- return getattr(repo.unfiltered(), self.name)
- return super(unfilteredpropertycache, self).__get__(repo.unfiltered())
+ unfi = repo.unfiltered()
+ if unfi is repo:
+ return super(unfilteredpropertycache, self).__get__(unfi)
+ return getattr(unfi, self.name)
class filteredpropertycache(propertycache):
"""propertycache that must take filtering in account"""