Show More
@@ -30,7 +30,7 b" CB_MANIFEST_FILE = b'clonebundles.manife" | |||
|
30 | 30 | CLONEBUNDLESCHEME = b"peer-bundle-cache://" |
|
31 | 31 | |
|
32 | 32 | |
|
33 | def get_manifest(repo): | |
|
33 | def get_manifest(repo) -> bytes: | |
|
34 | 34 | """get the bundle manifest to be served to a client from a server""" |
|
35 | 35 | raw_text = repo.vfs.tryread(CB_MANIFEST_FILE) |
|
36 | 36 | entries = [e.split(b' ', 1) for e in raw_text.splitlines()] |
@@ -46,7 +46,7 b' def get_manifest(repo):' | |||
|
46 | 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 | 50 | """a function that exist to help extension and hosting to alter the url |
|
51 | 51 | |
|
52 | 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