Changing existing subrepo mappings from absolute to relative paths

Martin Geisler mg at lazybytes.net
Thu Dec 15 11:57:04 CST 2011


Angel Ezquerra <angel.ezquerra at gmail.com> writes:

> On Thu, Dec 15, 2011 at 9:27 AM, Martin Geisler <mg at lazybytes.net> wrote:
>> Angel Ezquerra <angel.ezquerra at gmail.com> writes:
>>
>>> My next attempt was to create an .hg/supaths file with the following
>>> contents:
>>>
>>> [subpaths]
>>> \\mercurial\Mercurial\HSPA\FPGA\COMMON = HSPA_MODULES/COMMON
>>
>> Ah, the .hg/subpaths file is not read by normal Mercurial. It was a
>> file read by an early version of the subpaths extension I put on
>> Bitbucket. That extension is now called projrc and can set more than
>> just subpaths settings.
>>
>> So you need to do the remapping in a config file actually read by
>> Mercurial -- like the .hg/hgrc file.
>
> Martin,
>
> the first Google result for "mercurial subpaths" is
> http://mercurial.selenic.com/wiki/SubrepoRemappingPlan, which is where
> the usage of the subpaths file is explained. Perhaps it would make
> sense to update that wiki page with a link to the new extension?

Yeah it would be good to update the page! I only renames the
SubpathsExtension page so that if you click on SubpathsExtension, you'll
be redirected to ProjrcExtension automatically.

> BTW, I think you had mentioned this projrc extension in the past. I
> think it can be very useful, particularly on "corporate" environments
> where there is often the need to make sure (to a certain degree) that
> all developers have a similar configuration for a given project. I
> wish it was distributed with mercurial as an official extension!

It's a very dangerous extension... it easily opens you up for all sorts
of remote exploits. But it's also very convenient in a trusted,
corporate environment, which is exactly what it was written for :)

-- 
Martin Geisler

Mercurial links: http://mercurial.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial/attachments/20111215/2eb43db1/attachment.pgp>


More information about the Mercurial mailing list