mercurial/localrepo.py
changeset 19852 57479e0d203d
parent 19778 55ef79031009
parent 19846 9789670992d6
child 19853 eddc2a2d57e6
--- 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"""