Mercurial > public > mercurial-scm > hg-stable
diff mercurial/statichttprepo.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 | 1d710fe5ee0e |
children | ffd589d4b785 |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Mon Aug 13 21:25:48 2012 +0900 +++ b/mercurial/statichttprepo.py Fri Aug 31 02:06:29 2012 +0900 @@ -64,7 +64,7 @@ urlopener = url.opener(ui, authinfo) urlopener.add_handler(byterange.HTTPRangeHandler()) - class statichttpopener(scmutil.abstractopener): + class statichttpvfs(scmutil.abstractvfs): def __init__(self, base): self.base = base @@ -74,7 +74,7 @@ f = "/".join((self.base, urllib.quote(path))) return httprangereader(f, urlopener) - return statichttpopener + return statichttpvfs class statichttppeer(localrepo.localpeer): def local(self):