Show More
@@ -421,7 +421,18 b' def repo_rel_or_abs_source(repo):' | |||
|
421 | 421 | |
|
422 | 422 | chunks.reverse() |
|
423 | 423 | path = posixpath.join(*chunks) |
|
424 | return posixpath.normpath(path) | |
|
424 | matchscheme = re.compile(b'^[a-zA-Z0-9+.\\-]+:').match | |
|
425 | if matchscheme(path): | |
|
426 | scheme, path = path.split(b':', 1) | |
|
427 | if path.startswith(b'//'): | |
|
428 | path = path[2:] | |
|
429 | sep = b'//' | |
|
430 | else: | |
|
431 | sep = b'' | |
|
432 | normalized_path = scheme + b':' + sep + posixpath.normpath(path) | |
|
433 | else: | |
|
434 | normalized_path = posixpath.normpath(path) | |
|
435 | return normalized_path | |
|
425 | 436 | |
|
426 | 437 | |
|
427 | 438 | def reporelpath(repo: "localrepo.localrepository") -> bytes: |
General Comments 0
You need to be logged in to leave comments.
Login now