diff mercurial/wireprotov1server.py @ 50699:2aaabd8f4471

clone-bundle: rename the methods and wireprotole command The current naming is very clone centric, since then, the url scheme was moved to a more generic wording to make room for other use-cases (e.g. pull bundles). We apply the same logic to the internal API and, very important prior to the release, to the wire protocol command.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Jun 2023 11:04:27 +0200
parents a41eeb877d07
children 4238e6b22fc4
line wrap: on
line diff
--- a/mercurial/wireprotov1server.py	Sun Jun 18 00:04:53 2023 +0200
+++ b/mercurial/wireprotov1server.py	Mon Jun 19 11:04:27 2023 +0200
@@ -265,8 +265,8 @@
     return wireprototypes.bytesresponse(b''.join(r))
 
 
-@wireprotocommand(b'get_inline_clone_bundle', b'path', permission=b'pull')
-def get_inline_clone_bundle(repo, proto, path):
+@wireprotocommand(b'get_cached_bundle_inline', b'path', permission=b'pull')
+def get_cached_bundle_inline(repo, proto, path):
     """
     Server command to send a clonebundle to the client
     """