Show More
@@ -347,6 +347,12 b' class filtervfs(abstractvfs):' | |||
|
347 | 347 | def __call__(self, path, *args, **kwargs): |
|
348 | 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 | 356 | filteropener = filtervfs |
|
351 | 357 | |
|
352 | 358 | def canonpath(root, cwd, myname, auditor=None): |
@@ -74,6 +74,12 b' def build_opener(ui, authinfo):' | |||
|
74 | 74 | f = "/".join((self.base, urllib.quote(path))) |
|
75 | 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 | 83 | return statichttpvfs |
|
78 | 84 | |
|
79 | 85 | class statichttppeer(localrepo.localpeer): |
@@ -441,6 +441,12 b' class _fncachevfs(scmutil.abstractvfs):' | |||
|
441 | 441 | self.fncache.add(path) |
|
442 | 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 | 450 | class fncachestore(basicstore): |
|
445 | 451 | def __init__(self, path, vfstype, dotencode): |
|
446 | 452 | if dotencode: |
General Comments 0
You need to be logged in to leave comments.
Login now