Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is the hgweb.cgi script only in the source package or is it provided with the PPA?

If it's only in the source, do I have to take any other files for it to work, or just hgweb.cgi in the top level folder?

share|improve this question
up vote 1 down vote accepted

I'm not using any PPA, but the standard package has it in /usr/share/doc/mercurial-common/examples/hgweb.cgi. There are a few alternatives as well (WSGI, etc), that all use a common backend.

share|improve this answer
thanks, this is a valid version of hgweb.cgi – davidosomething Nov 22 '10 at 1:11

If anyone else is wondering, you need hgweb.cgi (either from the location in Tobu's answer) or from the source. You'll also need the template files and static file (contains logo and other images) from the templates folder (you don't need the hgweb folder, that is just source)

share|improve this answer

You can find the most up to date version of hgweb.cgi in the mercurial source repository over at

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.