diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -2859,7 +2859,7 @@ def inline_clone_bundle_open(ui, url, pe if not peer: raise error.Abort(_(b'no remote repository supplied for %s' % url)) clonebundleid = url[len(bundlecaches.CLONEBUNDLESCHEME) :] - peerclonebundle = peer.get_inline_clone_bundle(clonebundleid) + peerclonebundle = peer.get_cached_bundle_inline(clonebundleid) return util.chunkbuffer(peerclonebundle) diff --git a/mercurial/interfaces/repository.py b/mercurial/interfaces/repository.py --- a/mercurial/interfaces/repository.py +++ b/mercurial/interfaces/repository.py @@ -176,8 +176,8 @@ class ipeercommands(interfaceutil.Interf Returns a set of string capabilities. """ - def get_inline_clone_bundle(path): - """Retrieve clonebundle across the wire. + def get_cached_bundle_inline(path): + """Retrieve a clonebundle across the wire. Returns a chunkbuffer """ diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -348,7 +348,7 @@ class localpeer(repository.peer): def capabilities(self): return self._caps - def get_inline_clone_bundle(self, path): + def get_cached_bundle_inline(self, path): # not needed with local peer raise NotImplementedError diff --git a/mercurial/wireprotov1peer.py b/mercurial/wireprotov1peer.py --- a/mercurial/wireprotov1peer.py +++ b/mercurial/wireprotov1peer.py @@ -344,8 +344,8 @@ class wirepeer(repository.peer): 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 diff --git a/mercurial/wireprotov1server.py b/mercurial/wireprotov1server.py --- a/mercurial/wireprotov1server.py +++ b/mercurial/wireprotov1server.py @@ -265,8 +265,8 @@ def branches(repo, proto, nodes): 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 """