Pushing relative subrepos

Georg Zetzsche georgz at gmx.de
Thu Nov 18 05:20:36 CST 2010


Am 17.11.2010 21:32, schrieb Matt Mackall:
>> As far as I can see, "hg push" should "hg init" a subfolder in the
>> target repo before pushing the subrepo in this case.
>>
>> Is this a bug?
> 
> No. It's always been the user's job to initialize repositories before
> pushing to them.

Keeping this behaviour would mean that every time someone adds a subrepo
(which I would consider part of the parent repo, if it has a relative
location), they have to ask an administrator to initialize a subrepo with
the corresponding name, although they have the permission to push. Is this
really the intended workflow?

On the other hand, when you pull -u from a repo that has a new subrepo,
a new folder is readily initialized. Isn't this somewhat asymmetrical?



More information about the Mercurial mailing list