[PATCH cleanup] exchange: prepare kwargs for bundle2 part generation exactly once

Augie Fackler raf at durin42.com
Fri Nov 7 09:22:35 CST 2014


On Thu, Nov 06, 2014 at 05:30:24PM -0500, Mike Edgar wrote:
> # HG changeset patch
> # User Mike Edgar <adgar at google.com>
> # Date 1414601168 14400
> #      Wed Oct 29 12:46:08 2014 -0400
> # Node ID 5de7c2528ac11ad7bc108e4d5ae01196d8c6f959
> # Parent  2d54aa5397cdb1c697673ba10b7618d5ac25c69e
> exchange: prepare kwargs for bundle2 part generation exactly once

queued, thanks

>
> diff -r 2d54aa5397cd -r 5de7c2528ac1 mercurial/exchange.py
> --- a/mercurial/exchange.py	Sat Oct 18 01:09:41 2014 -0700
> +++ b/mercurial/exchange.py	Wed Oct 29 12:46:08 2014 -0400
> @@ -1182,10 +1182,11 @@
>              b2caps.update(bundle2.decodecaps(blob))
>      bundler = bundle2.bundle20(repo.ui, b2caps)
>
> +    kwargs['heads'] = heads
> +    kwargs['common'] = common
> +
>      for name in getbundle2partsorder:
>          func = getbundle2partsmapping[name]
> -        kwargs['heads'] = heads
> -        kwargs['common'] = common
>          func(bundler, repo, source, bundlecaps=bundlecaps, b2caps=b2caps,
>               **kwargs)
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list