diff mercurial/wireprotov1peer.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 60f9602b413e
children 4238e6b22fc4
line wrap: on
line diff
--- a/mercurial/wireprotov1peer.py	Sun Jun 18 00:04:53 2023 +0200
+++ b/mercurial/wireprotov1peer.py	Mon Jun 19 11:04:27 2023 +0200
@@ -344,8 +344,8 @@
     def _finish_inline_clone_bundle(self, stream):
         pass  # allow override for httppeer
 
-    def get_inline_clone_bundle(self, path):
-        stream = self._callstream(b"get_inline_clone_bundle", path=path)
+    def get_cached_bundle_inline(self, path):
+        stream = self._callstream(b"get_cached_bundle_inline", path=path)
         length = util.uvarintdecodestream(stream)
 
         # SSH streams will block if reading more than length