hgwedir, two questions url generation and creating repositories over http?

Dirkjan Ochtman dirkjan at ochtman.nl
Mon Sep 1 01:55:13 CDT 2008


Jorge Vargas wrote:
> 1- how can I remove the hgwebdir.cgi part of the URLs generated?
> 
> when I had my repo as www.example.com/hg <http://www.example.com/hg>
> I can used the baseurl param under [web] to be /hg and that fixed the 
> problem, but when I set it to / I get a bad url generation for the repo 
> link, which gives me URLs like http:/<reponame>, if I leave baseurl as 
> blank then I get the above .cgi

Can you try setting baseurl to http://hg.example.com/?

> 2- is there a way to create repositories over http?

No, there is not. You can hg init over SSH, clone from local to remote 
over SSH, or write your own script that starts a new repo for you.

Cheers,

Dirkjan


More information about the Mercurial mailing list