Subrepos and multiple top repos

Benoît Allard benoit at aeteurope.nl
Wed Jun 1 07:32:40 CDT 2011


On 6/1/2011 7:56 AM, Mathias De Maré wrote:
> Hello,
>
> I'm trying to tackle an issue related to subrepositories.
>
> My setup is as follows (or will be, but I'm unsure about the best way to
> proceed):
>
> There are multiple top repositories (projects), containing a number of
> overlapping subrepositories.
> For example:
> A contains subrepositories W, X and Y.
> B contains subrepositories W, Y and Z.
>
> I want to set up a central server, containing all of the repositories.
> Preferably, I want to store all the repositories just once. Not out of
> space concern, but to avoid multiple instances of repositories drifting
> apart too much.

This could also be solved with only one top repository containing W, X, 
Y, and Z and a more flexible .hgsub : one where you could say, I want 
"configA", where configA is W, X, and Y, or "configB" where configB is 
W, Y, and Z.

One practical solution would have to use two .hgsub files and to specify 
the one you want to use on the command line (for instance).

I'm not for using two repositories. In you case, It can well be that A 
and B are fork of each other. So it looks clear to me that they should 
be put back together, and that it's not the limitation of the tools you 
use that should dictate the way you organize your code.

Regards,
Benoit

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6370 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://selenic.com/pipermail/mercurial/attachments/20110601/be033638/attachment.bin>


More information about the Mercurial mailing list