This procedure significantly removes the complexity of the set up detailed in a previous post.
- Download and extract this archive.
- Replace the ~/python/mercurial folder with an alternate build if necessary (this one is for x86_64/python2.4).
- Upload to your web host.
* Note: The Mercurial CGI is designed to be run in a top-level domain or sub-domain.
- Ensure the following settings:
~/cgi-bin/hgwebdir.cgi has permissions 755 (rwxr-xr-x)
~/cgi-bin/hgweb.config has file paths changed relative to your server
~/.htaccess has AuthFile paths changed relative to your server
- Check to see if the site works.
To create a new repository, copy the example directory in the /cgi-bin folder to the same directory, fix it’s hgrc file in a text editor, and register this new project in hgweb.config. Configuration files:
- hgweb.config – repository directory config
- hgrc – per-project config
And that’s all. That was easy!