Show More
@@ -30,7 +30,7 b" CB_MANIFEST_FILE = b'clonebundles.manife" | |||||
30 | CLONEBUNDLESCHEME = b"peer-bundle-cache://" |
|
30 | CLONEBUNDLESCHEME = b"peer-bundle-cache://" | |
31 |
|
31 | |||
32 |
|
32 | |||
33 | def get_manifest(repo): |
|
33 | def get_manifest(repo) -> bytes: | |
34 | """get the bundle manifest to be served to a client from a server""" |
|
34 | """get the bundle manifest to be served to a client from a server""" | |
35 | raw_text = repo.vfs.tryread(CB_MANIFEST_FILE) |
|
35 | raw_text = repo.vfs.tryread(CB_MANIFEST_FILE) | |
36 | entries = [e.split(b' ', 1) for e in raw_text.splitlines()] |
|
36 | entries = [e.split(b' ', 1) for e in raw_text.splitlines()] | |
@@ -46,7 +46,7 b' def get_manifest(repo):' | |||||
46 | return b''.join(new_lines) |
|
46 | return b''.join(new_lines) | |
47 |
|
47 | |||
48 |
|
48 | |||
49 | def alter_bundle_url(repo, url): |
|
49 | def alter_bundle_url(repo, url: bytes) -> bytes: | |
50 | """a function that exist to help extension and hosting to alter the url |
|
50 | """a function that exist to help extension and hosting to alter the url | |
51 |
|
51 | |||
52 | This will typically be used to inject authentication information in the url |
|
52 | This will typically be used to inject authentication information in the url |
General Comments 0
You need to be logged in to leave comments.
Login now