diff mercurial/localrepo.py @ 27233:dfb836a31b61

localrepo: add a second auditor without file system check Auditors keeps a cache of audited paths. Therefore we cannot use the same auditor for working copy and history operation. We create a new one without file system check for this purposes.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 03 Dec 2015 13:22:36 -0800
parents 3fe8cb40c9c5
children 07ae7e8c8ac9
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Dec 03 10:40:19 2015 -0800
+++ b/mercurial/localrepo.py	Thu Dec 03 13:22:36 2015 -0800
@@ -214,6 +214,8 @@
         self.path = self.wvfs.join(".hg")
         self.origroot = path
         self.auditor = pathutil.pathauditor(self.root, self._checknested)
+        self.nofsauditor = pathutil.pathauditor(self.root, self._checknested,
+                                                realfs=False)
         self.vfs = scmutil.vfs(self.path)
         self.opener = self.vfs
         self.baseui = baseui