comparison mercurial/interfaces/repository.py @ 50666:60f9602b413e

clonebundles: add support for inline (streaming) clonebundles The idea behind inline clonebundles is to send them through the ssh or https connection to the Mercurial server. We've been using this specifically for streaming clonebundles, although it works for 'regular' clonebundles as well (but is less relevant, since pullbundles exist). We've had this enabled for around 9 months for a part of our users. A few benefits are: - no need to secure an external system, since everything goes through the same Mercurial server - easier scaling (in our case: no risk of inconsistencies between multiple mercurial-server mirrors and nginx clonebundles hosts) Remaining topics/questions right now: - The inline clonebundles don't work for https yet. This is because httppeer doesn't seem to support sending client capabilities. I didn't focus on that as my main goal was to get this working for ssh.
author Mathias De Mare <mathias.de_mare@nokia.com>
date Wed, 08 Mar 2023 14:23:43 +0100
parents 32837c7e2e4b
children 2aaabd8f4471
comparison
equal deleted inserted replaced
50646:c814101560d9 50666:60f9602b413e
172 172
173 def capabilities(): 173 def capabilities():
174 """Obtain capabilities of the peer. 174 """Obtain capabilities of the peer.
175 175
176 Returns a set of string capabilities. 176 Returns a set of string capabilities.
177 """
178
179 def get_inline_clone_bundle(path):
180 """Retrieve clonebundle across the wire.
181
182 Returns a chunkbuffer
177 """ 183 """
178 184
179 def clonebundles(): 185 def clonebundles():
180 """Obtains the clone bundles manifest for the repo. 186 """Obtains the clone bundles manifest for the repo.
181 187