mercurial/dirstate.py
branchstable
changeset 16202 53e2cd303ecf
parent 16201 fb7c4c14223f
child 16258 594fc9329628
--- a/mercurial/dirstate.py	Thu Mar 01 17:42:49 2012 +0200
+++ b/mercurial/dirstate.py	Thu Mar 01 17:49:59 2012 +0200
@@ -21,6 +21,11 @@
     def join(self, obj, fname):
         return obj._opener.join(fname)
 
+class rootcache(filecache):
+    """filecache for files in the repository root"""
+    def join(self, obj, fname):
+        return obj._join(fname)
+
 def _finddirs(path):
     pos = path.rfind('/')
     while pos != -1:
@@ -120,7 +125,7 @@
     def dirs(self):
         return self._dirs
 
-    @propertycache
+    @rootcache('.hgignore')
     def _ignore(self):
         files = [self._join('.hgignore')]
         for name, path in self._ui.configitems("ui"):