[PATCH 2 of 2] subrepo: create subrepos using clone instead of pull
Matt Mackall
mpm at selenic.com
Fri Mar 25 10:15:14 CDT 2011
On Fri, 2011-03-25 at 16:07 +0100, Martin Geisler wrote:
> # HG changeset patch
> # User Martin Geisler <mg at aragost.com>
> # Date 1301064435 -3600
> # Node ID d786036b749bc58d219b22039559480716bb5071
> # Parent a8019f68e1463d6b1d5406f5f22d17f9aa8c828c
> subrepo: create subrepos using clone instead of pull
>
> Subrepositories are currently always created empty and then filled
> with data using pull. This is wasteful when you do an initial clone
> since it means that no hardlinks are created for the subrepos.
>
> This patch make the hgsubrepo._get method check for an empty subrepo
> and in that case do a clone instead of a pull. This brings in the same
> data while creating hardlinks when possible.
This seems like a good idea to me.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list