# HG changeset patch # User FUJIWARA Katsunori # Date 1346346389 -32400 # Node ID 3b49c28658f60dcf0ca85384772399d100820551 # Parent bf2eb3a126d243e9039a10cd091637074f2b9d68 store: rename "openertype" argument to "vfstype" diff -r bf2eb3a126d2 -r 3b49c28658f6 mercurial/store.py --- a/mercurial/store.py Fri Aug 31 02:06:29 2012 +0900 +++ b/mercurial/store.py Fri Aug 31 02:06:29 2012 +0900 @@ -288,10 +288,10 @@ class basicstore(object): '''base class for local repository stores''' - def __init__(self, path, openertype): + def __init__(self, path, vfstype): self.path = path self.createmode = _calcmode(path) - op = openertype(self.path) + op = vfstype(self.path) op.createmode = self.createmode self.opener = scmutil.filteropener(op, encodedir) @@ -338,10 +338,10 @@ pass class encodedstore(basicstore): - def __init__(self, path, openertype): + def __init__(self, path, vfstype): self.path = path + '/store' self.createmode = _calcmode(self.path) - op = openertype(self.path) + op = vfstype(self.path) op.createmode = self.createmode self.opener = scmutil.filteropener(op, encodefilename) @@ -438,7 +438,7 @@ return self.opener(self.encode(path), mode, *args, **kw) class fncachestore(basicstore): - def __init__(self, path, openertype, dotencode): + def __init__(self, path, vfstype, dotencode): if dotencode: encode = _dothybridencode else: @@ -447,7 +447,7 @@ self.path = path + '/store' self.pathsep = self.path + '/' self.createmode = _calcmode(self.path) - op = openertype(self.path) + op = vfstype(self.path) op.createmode = self.createmode fnc = fncache(op) self.fncache = fnc @@ -486,9 +486,9 @@ def write(self): self.fncache.write() -def store(requirements, path, openertype): +def store(requirements, path, vfstype): if 'store' in requirements: if 'fncache' in requirements: - return fncachestore(path, openertype, 'dotencode' in requirements) - return encodedstore(path, openertype) - return basicstore(path, openertype) + return fncachestore(path, vfstype, 'dotencode' in requirements) + return encodedstore(path, vfstype) + return basicstore(path, vfstype)