mercurial/localrepo.py
branchstable
changeset 33633 20bac46f7744
parent 33168 664d6f6c2a48
--- a/mercurial/localrepo.py	Tue Aug 01 21:03:25 2017 +0900
+++ b/mercurial/localrepo.py	Wed Jul 26 22:10:15 2017 +0900
@@ -273,8 +273,8 @@
         self.origroot = path
         self.auditor = pathutil.pathauditor(self.root, self._checknested)
         self.nofsauditor = pathutil.pathauditor(self.root, self._checknested,
-                                                realfs=False)
-        self.vfs = vfsmod.vfs(self.path)
+                                                realfs=False, cached=True)
+        self.vfs = vfsmod.vfs(self.path, cacheaudited=True)
         self.baseui = baseui
         self.ui = baseui.copy()
         self.ui.copy = baseui.copy # prevent copying repo configuration
@@ -350,7 +350,8 @@
                 raise
 
         self.store = store.store(
-                self.requirements, self.sharedpath, vfsmod.vfs)
+            self.requirements, self.sharedpath,
+            lambda base: vfsmod.vfs(base, cacheaudited=True))
         self.spath = self.store.path
         self.svfs = self.store.vfs
         self.sjoin = self.store.join