mercurial/localrepo.py
branchstable
changeset 19846 9789670992d6
parent 19515 14c91b18d798
child 19852 57479e0d203d
--- a/mercurial/localrepo.py	Mon Sep 30 14:36:11 2013 +0200
+++ b/mercurial/localrepo.py	Mon Sep 30 14:23:14 2013 +0200
@@ -39,7 +39,10 @@
     """propertycache that apply to unfiltered repo only"""
 
     def __get__(self, repo, type=None):
-        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"""