##// END OF EJS Templates
store: rename "op" variables to "vfs"
FUJIWARA Katsunori -
r17652:2c6f7231 default
parent child Browse files
Show More
@@ -291,9 +291,9 b' class basicstore(object):'
291 def __init__(self, path, vfstype):
291 def __init__(self, path, vfstype):
292 self.path = path
292 self.path = path
293 self.createmode = _calcmode(path)
293 self.createmode = _calcmode(path)
294 op = vfstype(self.path)
294 vfs = vfstype(self.path)
295 op.createmode = self.createmode
295 vfs.createmode = self.createmode
296 self.opener = scmutil.filteropener(op, encodedir)
296 self.opener = scmutil.filteropener(vfs, encodedir)
297
297
298 def join(self, f):
298 def join(self, f):
299 return self.path + '/' + encodedir(f)
299 return self.path + '/' + encodedir(f)
@@ -341,9 +341,9 b' class encodedstore(basicstore):'
341 def __init__(self, path, vfstype):
341 def __init__(self, path, vfstype):
342 self.path = path + '/store'
342 self.path = path + '/store'
343 self.createmode = _calcmode(self.path)
343 self.createmode = _calcmode(self.path)
344 op = vfstype(self.path)
344 vfs = vfstype(self.path)
345 op.createmode = self.createmode
345 vfs.createmode = self.createmode
346 self.opener = scmutil.filteropener(op, encodefilename)
346 self.opener = scmutil.filteropener(vfs, encodefilename)
347
347
348 def datafiles(self):
348 def datafiles(self):
349 for a, b, size in self._walk('data', True):
349 for a, b, size in self._walk('data', True):
@@ -447,11 +447,11 b' class fncachestore(basicstore):'
447 self.path = path + '/store'
447 self.path = path + '/store'
448 self.pathsep = self.path + '/'
448 self.pathsep = self.path + '/'
449 self.createmode = _calcmode(self.path)
449 self.createmode = _calcmode(self.path)
450 op = vfstype(self.path)
450 vfs = vfstype(self.path)
451 op.createmode = self.createmode
451 vfs.createmode = self.createmode
452 fnc = fncache(op)
452 fnc = fncache(vfs)
453 self.fncache = fnc
453 self.fncache = fnc
454 self.opener = _fncachevfs(op, fnc, encode)
454 self.opener = _fncachevfs(vfs, fnc, encode)
455
455
456 def join(self, f):
456 def join(self, f):
457 return self.pathsep + self.encode(f)
457 return self.pathsep + self.encode(f)
General Comments 0
You need to be logged in to leave comments. Login now