[PATCH 2 of 2] getbundle: add a ``cg`` boolean argument to control changegroup inclusion

Matt Mackall mpm at selenic.com
Mon Aug 4 14:14:41 CDT 2014


On Mon, 2014-08-04 at 11:41 -0700, pierre-yves.david at ens-lyon.org wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at fb.com>
> # Date 1401580109 25200
> #      Sat May 31 16:48:29 2014 -0700
> # Node ID 1f6ba804c429b73ec9eda440deca788632ac3849
> # Parent  d45398ff6b1cf799b0e76b0d1f8c3e30b0079ba9
> getbundle: add a ``cg`` boolean argument to control changegroup inclusion
> 
> The ``getbundle`` function was initially design to return changegroup bundle.
> However, bundle2 allow to transmit a wide range of data. Some of the bundle2
> request may not includes changegroup at all.
> 
> Before this changeset, the client would request a changegroup for
> ``heads=[nullid]`` and receives an empty changegroup.
> 
> We introduce an official boolean parameters, ``cg``, that can be set to false to
> disable changegroup generation on getbundle. A new bundle2 capabilities is
> introduced to let the client known.

These are queued for default, thanks.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list