mercurial/localrepo.py
branchstable
changeset 33633 20bac46f7744
parent 33168 664d6f6c2a48
equal deleted inserted replaced
33632:0134d839444b 33633:20bac46f7744
   271         self.root = self.wvfs.base
   271         self.root = self.wvfs.base
   272         self.path = self.wvfs.join(".hg")
   272         self.path = self.wvfs.join(".hg")
   273         self.origroot = path
   273         self.origroot = path
   274         self.auditor = pathutil.pathauditor(self.root, self._checknested)
   274         self.auditor = pathutil.pathauditor(self.root, self._checknested)
   275         self.nofsauditor = pathutil.pathauditor(self.root, self._checknested,
   275         self.nofsauditor = pathutil.pathauditor(self.root, self._checknested,
   276                                                 realfs=False)
   276                                                 realfs=False, cached=True)
   277         self.vfs = vfsmod.vfs(self.path)
   277         self.vfs = vfsmod.vfs(self.path, cacheaudited=True)
   278         self.baseui = baseui
   278         self.baseui = baseui
   279         self.ui = baseui.copy()
   279         self.ui = baseui.copy()
   280         self.ui.copy = baseui.copy # prevent copying repo configuration
   280         self.ui.copy = baseui.copy # prevent copying repo configuration
   281         # A list of callback to shape the phase if no data were found.
   281         # A list of callback to shape the phase if no data were found.
   282         # Callback are in the form: func(repo, roots) --> processed root.
   282         # Callback are in the form: func(repo, roots) --> processed root.
   348         except IOError as inst:
   348         except IOError as inst:
   349             if inst.errno != errno.ENOENT:
   349             if inst.errno != errno.ENOENT:
   350                 raise
   350                 raise
   351 
   351 
   352         self.store = store.store(
   352         self.store = store.store(
   353                 self.requirements, self.sharedpath, vfsmod.vfs)
   353             self.requirements, self.sharedpath,
       
   354             lambda base: vfsmod.vfs(base, cacheaudited=True))
   354         self.spath = self.store.path
   355         self.spath = self.store.path
   355         self.svfs = self.store.vfs
   356         self.svfs = self.store.vfs
   356         self.sjoin = self.store.join
   357         self.sjoin = self.store.join
   357         self.vfs.createmode = self.store.createmode
   358         self.vfs.createmode = self.store.createmode
   358         self._applyopenerreqs()
   359         self._applyopenerreqs()