localrepo: add a second auditor without file system check
authorPierre-Yves David <pierre-yves.david@fb.com>
Thu, 03 Dec 2015 13:22:36 -0800
changeset 27233 dfb836a31b61
parent 27232 79a86a95f325
child 27234 15c6eb0a51bd
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.
mercurial/localrepo.py
--- 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