comparison 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
comparison
equal deleted inserted replaced
27232:79a86a95f325 27233:dfb836a31b61
212 self.wopener = self.wvfs 212 self.wopener = self.wvfs
213 self.root = self.wvfs.base 213 self.root = self.wvfs.base
214 self.path = self.wvfs.join(".hg") 214 self.path = self.wvfs.join(".hg")
215 self.origroot = path 215 self.origroot = path
216 self.auditor = pathutil.pathauditor(self.root, self._checknested) 216 self.auditor = pathutil.pathauditor(self.root, self._checknested)
217 self.nofsauditor = pathutil.pathauditor(self.root, self._checknested,
218 realfs=False)
217 self.vfs = scmutil.vfs(self.path) 219 self.vfs = scmutil.vfs(self.path)
218 self.opener = self.vfs 220 self.opener = self.vfs
219 self.baseui = baseui 221 self.baseui = baseui
220 self.ui = baseui.copy() 222 self.ui = baseui.copy()
221 self.ui.copy = baseui.copy # prevent copying repo configuration 223 self.ui.copy = baseui.copy # prevent copying repo configuration