Mercurial > hg
changeset 17651:3b49c28658f6
store: rename "openertype" argument to "vfstype"
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Fri, 31 Aug 2012 02:06:29 +0900 |
parents | bf2eb3a126d2 |
children | 2c6f7231becc |
files | mercurial/store.py |
diffstat | 1 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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)