[PATCH 8 of 8] bundle2: send changegroup version 2 bundles by default

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri Oct 17 14:24:29 CDT 2014



On 10/17/2014 06:14 AM, Sune Foldager wrote:
> # HG changeset patch
> # User Sune Foldager <cryo at cyanite.org>
> # Date 1413550750 -7200
> #      Fri Oct 17 14:59:10 2014 +0200
> # Node ID c04ea54402e8c39cbf748bb136f923f25a107523
> # Parent  7b3ef1e1d1d40c5838f2df7afaf6d4029855c1ed
> bundle2: send changegroup version 2 bundles by default
>
> diff -r 7b3ef1e1d1d4 -r c04ea54402e8 mercurial/exchange.py
> --- a/mercurial/exchange.py	Fri Oct 17 14:41:21 2014 +0200
> +++ b/mercurial/exchange.py	Fri Oct 17 14:59:10 2014 +0200
> @@ -1172,7 +1172,7 @@
>       cg = None
>       if kwargs.get('cg', True):
>           # build changegroup bundle here.
> -        version = '1'
> +        version = '2'
>           cg = changegroup.getchangegroupraw(repo, source, heads=heads,
>                                              common=common, bundlecaps=bundlecaps,
>                                              version=version)

I changed that look at all supported packer on both side and take the 
max of the common value. I also implemented the same logic for push.

I'll send a V2 of this series with these various improvement shortly.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list