##// END OF EJS Templates
vfs: use 'vfs' module directly in 'mercurial.store'...
Pierre-Yves David -
r31234:9b7a2ef4 default
parent child Browse files
Show More
@@ -17,8 +17,8 b' from . import ('
17 error,
17 error,
18 parsers,
18 parsers,
19 pycompat,
19 pycompat,
20 scmutil,
21 util,
20 util,
21 vfs as vfsmod,
22 )
22 )
23
23
24 # This avoids a collision between a file named foo and a dir named
24 # This avoids a collision between a file named foo and a dir named
@@ -325,7 +325,7 b' class basicstore(object):'
325 self.createmode = _calcmode(vfs)
325 self.createmode = _calcmode(vfs)
326 vfs.createmode = self.createmode
326 vfs.createmode = self.createmode
327 self.rawvfs = vfs
327 self.rawvfs = vfs
328 self.vfs = scmutil.filtervfs(vfs, encodedir)
328 self.vfs = vfsmod.filtervfs(vfs, encodedir)
329 self.opener = self.vfs
329 self.opener = self.vfs
330
330
331 def join(self, f):
331 def join(self, f):
@@ -398,7 +398,7 b' class encodedstore(basicstore):'
398 self.createmode = _calcmode(vfs)
398 self.createmode = _calcmode(vfs)
399 vfs.createmode = self.createmode
399 vfs.createmode = self.createmode
400 self.rawvfs = vfs
400 self.rawvfs = vfs
401 self.vfs = scmutil.filtervfs(vfs, encodefilename)
401 self.vfs = vfsmod.filtervfs(vfs, encodefilename)
402 self.opener = self.vfs
402 self.opener = self.vfs
403
403
404 def datafiles(self):
404 def datafiles(self):
@@ -477,9 +477,9 b' class fncache(object):'
477 self._load()
477 self._load()
478 return iter(self.entries)
478 return iter(self.entries)
479
479
480 class _fncachevfs(scmutil.abstractvfs, scmutil.auditvfs):
480 class _fncachevfs(vfsmod.abstractvfs, vfsmod.auditvfs):
481 def __init__(self, vfs, fnc, encode):
481 def __init__(self, vfs, fnc, encode):
482 scmutil.auditvfs.__init__(self, vfs)
482 vfsmod.auditvfs.__init__(self, vfs)
483 self.fncache = fnc
483 self.fncache = fnc
484 self.encode = encode
484 self.encode = encode
485
485
General Comments 0
You need to be logged in to leave comments. Login now