[PATCH] localrepo: send client's bundlecaps to a server during a pull
Matt Mackall
mpm at selenic.com
Thu Sep 5 17:38:37 CDT 2013
On Fri, 2013-08-30 at 13:14 -0700, Wojciech Lopata wrote:
> # HG changeset patch
> # User Wojciech Lopata <lopek at fb.com>
> # Date 1377891837 25200
> # Fri Aug 30 12:43:57 2013 -0700
> # Node ID b78c0dcf3d674c23462c1b68dff43e6d3277f295
> # Parent 73d761ed3dbddd06d4a65027ef82bb77ae0ec82f
> localrepo: send client's bundlecaps to a server during a pull
>
> Thanks to this change extensions that modify format of revlog and are used on
> client and server side will be able to customize format of bundles sent during
> a pull, and possibly make this operation faster.
The rule of client-server negotiation in Mercurial is: server (often
stateless!) reports capabilities, client _makes all decisions_.
This means that the client should not be sending capabilities to the
server, instead it should be saying "I see you support X, give me X."
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list