Mercurial > hg
diff mercurial/store.py @ 17649:f65c6a5f256c
scmutil: rename classes from "opener" to "vfs"
For backwards compatibility, aliases for the old names are added,
except for "abstractopener", "statichttpopener" and "_fncacheopener",
because these are not used in Mercurial core implementation after this
patch.
"_fncacheopener" was only referred in "fncachestore" constructor, so
this patch also renames from "_fncacheopener" to "_fncachevfs" there.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Fri, 31 Aug 2012 02:06:29 +0900 |
parents | ae103510f6aa |
children | 3b49c28658f6 |
line wrap: on
line diff
--- a/mercurial/store.py Mon Aug 13 21:25:48 2012 +0900 +++ b/mercurial/store.py Fri Aug 31 02:06:29 2012 +0900 @@ -418,7 +418,7 @@ self._load() return iter(self.entries) -class _fncacheopener(scmutil.abstractopener): +class _fncachevfs(scmutil.abstractvfs): def __init__(self, op, fnc, encode): self.opener = op self.fncache = fnc @@ -451,7 +451,7 @@ op.createmode = self.createmode fnc = fncache(op) self.fncache = fnc - self.opener = _fncacheopener(op, fnc, encode) + self.opener = _fncachevfs(op, fnc, encode) def join(self, f): return self.pathsep + self.encode(f)