mercurial/bundlecaches.py
changeset 51668 138ab7c6a6ff
parent 51597 ee1b648e4453
child 51725 278af66e6595
--- a/mercurial/bundlecaches.py	Wed Jul 10 17:09:34 2024 -0400
+++ b/mercurial/bundlecaches.py	Wed Jul 10 17:16:19 2024 -0400
@@ -30,7 +30,7 @@
 CLONEBUNDLESCHEME = b"peer-bundle-cache://"
 
 
-def get_manifest(repo):
+def get_manifest(repo) -> bytes:
     """get the bundle manifest to be served to a client from a server"""
     raw_text = repo.vfs.tryread(CB_MANIFEST_FILE)
     entries = [e.split(b' ', 1) for e in raw_text.splitlines()]
@@ -46,7 +46,7 @@
     return b''.join(new_lines)
 
 
-def alter_bundle_url(repo, url):
+def alter_bundle_url(repo, url: bytes) -> bytes:
     """a function that exist to help extension and hosting to alter the url
 
     This will typically be used to inject authentication information in the url