Subrepos: relative paths & cloning locally, over http and ssh

Mads Kiilerich mads at kiilerich.com
Mon Jan 31 16:47:57 CST 2011


Mike Williams wrote, On 01/31/2011 10:35 PM:
> Hi,
>
> On 01/31/11 10:13, Dale Wijnand wrote:
>> Hello,
>> I had an issue with cloning a repository with a subrepository
>> and couldn't find an easy fit-all solution.
>>
>> I switched over from this in .hgsub:
>> dep1 = ../dep1
>>
>> to this:
>> dep1 = dep1
>>
>> so that local clones worked.
>>
>> However that didn't work for cloning over http.
>
> If you are using hg serve then create an hgweb config-file with the 
> following content:
>
> [paths]
> project = .
> proejct/dep1 = ./dep1

Just use

     [paths]
     project = **
or
     / = **

/Mads



More information about the Mercurial mailing list