[PATCH remotenames-ext] pull: add option for taking over head discovery

Sean Farley sean at farley.io
Sun Jul 2 02:19:36 UTC 2017


Durham Goode <durham at fb.com> writes:

> # HG changeset patch
> # User Durham Goode <durham at fb.com>
> # Date 1498606517 25200
> #      Tue Jun 27 16:35:17 2017 -0700
> # Node ID 5b14e873f26326c0659727869b02d598c1db3099
> # Parent  67ef597998876ab259d87558776b68b391bd2364
> pull: add option for taking over head discovery
>
> In core Mercurial, setdiscovery.findcommonheads is responsible for figuring out
> which local commits are also on the server. With remotenames, we're tracking
> which commits are on the server each time we pull, so this data could be used to
> answer this question more efficiently.
>
> It is currently on by default. In the worst case, if the local remote names are
> old, it means the server may send more data than necessary, which is a no-op on
> clients that already have that data.
>
> On large repo's with lots of commits, this can shave 5-20s off of certain pulls.

Oh snap! I've been meaning to write something like this for ages;
thanks! Queued :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170701/dfc00286/attachment.sig>


More information about the Mercurial-devel mailing list