[PATCH 1 of 3] exchange: move code for generating a streaming clone into exchange

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu May 21 13:34:13 CDT 2015



On 05/21/2015 12:49 PM, Gregory Szorc wrote:
> marmoute, durin42, et al: I'd like you to think about possibly
> integrating the "stream clone" data format into changegroups/bundles.
> I'm not sure if this is something we could sneak into cg1 or cg2 as an
> alternative "compression" format or whether this will require a bundle2
> part. Whatever the solution, this is something I'd like to see landed in
> 3.5 so servers can emit the stream clone data to vanilla clients.

I would says it make the most sense as bundle2 part.

client: says "I'm empty can will accept stream clone" in getbundle 
capability.

server: generate a bundle that says:
   - get this stream bits (possibly from URL, do we want a generic "get 
part data from URL" mechanism?)
   - then apply this other parts as overlay
   - you are good to go, k thanks by.

> As it stands, I imagine Mozilla will copy the stream handling code into
> our bundleclone extension until we can consume stream clones with
> vanilla Mercurial, presumably with bundle2.

We are pretty close to have bundle2 turned on by default. I'm devoting 
all my "free to hack stuff" time to it and we are very close. I can feed 
you a couple of simple task to help it happen if you want to spend your 
time toward that instead.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list