Mercurial > public > mercurial-scm > hg
diff mercurial/statichttprepo.py @ 17725:ffd589d4b785
vfs: define "join()" in each classes derived from "abstractvfs"
This patch defines "join()" in each classes derived from "abstractvfs"
except "vfs", which already defines it.
This allows all vfs instances to be used for indirect file API
invocation.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Tue, 09 Oct 2012 01:41:55 +0900 |
parents | f65c6a5f256c |
children | ad194a8ab5c1 |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Tue Oct 09 01:41:55 2012 +0900 +++ b/mercurial/statichttprepo.py Tue Oct 09 01:41:55 2012 +0900 @@ -74,6 +74,12 @@ f = "/".join((self.base, urllib.quote(path))) return httprangereader(f, urlopener) + def join(self, path): + if path: + return os.path.join(self.base, path) + else: + return self.base + return statichttpvfs class statichttppeer(localrepo.localpeer):