Troubles with hgwebdir.cgi

John Goerzen jgoerzen at complete.org
Tue Mar 6 10:14:42 UTC 2007


Hi,

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.

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.

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

thanks,

-- John




More information about the Mercurial mailing list