Troubles with hgwebdir.cgi

Alexis S. L. Carvalho alexis at cecm.usp.br
Tue Mar 6 23:00:59 UTC 2007


Thus spake John Goerzen:
> I've got a few troubles with hgwebdir.cgi.  The first is with the
> collections setup.
> 
> I tried to have:
> 
> [collections]
> repo/ = repo/
> /home/foo = /home/foo/hg-debian
> /home/foo = /home/foo/hg-darcsmirrors
> 
> but this will omit the debian info and show only darcsmirrors.  I
> suspect you are using ConfigParser to parse this file, and the first
> declaration is being hidden.

Yup.

> This appears to be a weakness in the hgwebdir.cgi config file format.  I
> would suggest switching to something more apache-like, for instance:
> 
> [collections]
> documentroot = repo
> /hg-debian = /home/foo/hg-debian
> /hg-darcsmirrors = /home/foo/hg-darcsmirrors
> 
> This also has the benefit that if a person wants to name something with
> a name other than the path on disk, it's not necessary to use symlinks.

We can't really change the meaning of the [collections] section now
because of backwards compatibility, but another section with this
semantic sounds reasonable.

> Second problem...  there doesn't seem to be any "official" way to run it
> with FastCGI ir wsgi.  Any pointers?

This has come up quite a bit in the last few weeks.  I'm guessing we
should include something for the next release.  Take a look at

http://www.selenic.com/pipermail/mercurial-devel/2007-February/001069.html

Alexis



More information about the Mercurial mailing list