[PATCH] subrepo: transfer .hg/subpaths on clone and pull

Didly Bom didlybom at gmail.com
Tue Sep 7 08:31:37 CDT 2010


On Mon, Sep 6, 2010 at 6:25 PM, Martin Geisler <mg at lazybytes.net> wrote:

> Didly Bom <didlybom at gmail.com> writes:
>
> Hi Angel,
>
> Thanks for the good questions :)
>
> > If this extension is not enabled, will mercurial ignore the subpaths
> > file to get the subrepo mappings?
>
> Yes, the .hg/subpaths file is actually not read by Mercurial right now.
>
> > Or does this extension only take care of the automatic transfer of the
> > subpaths file? Also, does this mean that every user will need to
> > manually enable this extension in order to get the automatic transfer
> > of the subpaths file?
>
> Loading the extension will make Mercurial read and transfer the
> .hg/subpaths file on clone and pull. I think it makes good sense to
> couple those two: if you don't transfer the file, then just put your
> per-repo mappings into .hg/hgrc. Conversely, if you do transfer the
> file, then it should also be read -- it is still read before the
> .hg/hgrc file is read.
>

OK, so you'll still be able to set a [subpaths] section on your .hg/hgrc
file, right?


> You are welcome to help us hack on this, if you want :) Perhaps you want
> to add some settings to disable reading the .hg/subpaths file if it's
> there, or perhaps you want to make it be tranferred on push too.


I'd be cool to try, although I don't know that I'll have much time for this.
How are you guys sharing your patches? If I ever did any changes to this,
should I send you a patchbomb by email?

Angel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100907/8afe42b8/attachment.htm>


More information about the Mercurial-devel mailing list