Show More
@@ -347,6 +347,12 b' class filtervfs(abstractvfs):' | |||||
347 | def __call__(self, path, *args, **kwargs): |
|
347 | def __call__(self, path, *args, **kwargs): | |
348 | return self._orig(self._filter(path), *args, **kwargs) |
|
348 | return self._orig(self._filter(path), *args, **kwargs) | |
349 |
|
349 | |||
|
350 | def join(self, path): | |||
|
351 | if path: | |||
|
352 | return self._orig.join(self._filter(path)) | |||
|
353 | else: | |||
|
354 | return self._orig.join(path) | |||
|
355 | ||||
350 | filteropener = filtervfs |
|
356 | filteropener = filtervfs | |
351 |
|
357 | |||
352 | def canonpath(root, cwd, myname, auditor=None): |
|
358 | def canonpath(root, cwd, myname, auditor=None): |
@@ -74,6 +74,12 b' def build_opener(ui, authinfo):' | |||||
74 | f = "/".join((self.base, urllib.quote(path))) |
|
74 | f = "/".join((self.base, urllib.quote(path))) | |
75 | return httprangereader(f, urlopener) |
|
75 | return httprangereader(f, urlopener) | |
76 |
|
76 | |||
|
77 | def join(self, path): | |||
|
78 | if path: | |||
|
79 | return os.path.join(self.base, path) | |||
|
80 | else: | |||
|
81 | return self.base | |||
|
82 | ||||
77 | return statichttpvfs |
|
83 | return statichttpvfs | |
78 |
|
84 | |||
79 | class statichttppeer(localrepo.localpeer): |
|
85 | class statichttppeer(localrepo.localpeer): |
@@ -441,6 +441,12 b' class _fncachevfs(scmutil.abstractvfs):' | |||||
441 | self.fncache.add(path) |
|
441 | self.fncache.add(path) | |
442 | return self.vfs(self.encode(path), mode, *args, **kw) |
|
442 | return self.vfs(self.encode(path), mode, *args, **kw) | |
443 |
|
443 | |||
|
444 | def join(self, path): | |||
|
445 | if path: | |||
|
446 | return self.vfs.join(self.encode(path)) | |||
|
447 | else: | |||
|
448 | return self.vfs.join(path) | |||
|
449 | ||||
444 | class fncachestore(basicstore): |
|
450 | class fncachestore(basicstore): | |
445 | def __init__(self, path, vfstype, dotencode): |
|
451 | def __init__(self, path, vfstype, dotencode): | |
446 | if dotencode: |
|
452 | if dotencode: |
General Comments 0
You need to be logged in to leave comments.
Login now