comparison mercurial/wireprotov1server.py @ 50696: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
comparison
equal deleted inserted replaced
50695:f1b57672cb94 50696:2aaabd8f4471
263 r.append(wireprototypes.encodelist(b) + b"\n") 263 r.append(wireprototypes.encodelist(b) + b"\n")
264 264
265 return wireprototypes.bytesresponse(b''.join(r)) 265 return wireprototypes.bytesresponse(b''.join(r))
266 266
267 267
268 @wireprotocommand(b'get_inline_clone_bundle', b'path', permission=b'pull') 268 @wireprotocommand(b'get_cached_bundle_inline', b'path', permission=b'pull')
269 def get_inline_clone_bundle(repo, proto, path): 269 def get_cached_bundle_inline(repo, proto, path):
270 """ 270 """
271 Server command to send a clonebundle to the client 271 Server command to send a clonebundle to the client
272 """ 272 """
273 if hook.hashook(repo.ui, b'pretransmit-inline-clone-bundle'): 273 if hook.hashook(repo.ui, b'pretransmit-inline-clone-bundle'):
274 hook.hook( 274 hook.hook(