Installing Mercurial with Apache

02Apr08

If you’ve been following one of these guides explaining how to configure Mercurial with Apache you may have encountered the following error…
TypeError: 'hgwebdir' object is not callable
There may be a number of scenarios under which this error can happen but in my case it was because I was using an incompatible version hgwebdir.cgi. After installing Mercurial 0.9.4 I downloaded hgwebdir.cgi from here (which at the time of writing was for Mercurial 1.0). To fix the problem I had to use the version of hgwebdir.cgi that came with the Mercurial 0.9.4 install. On Ubuntu you’ll find it here /usr/share/doc/mercurial/examples/hgwebdir.cgi.

2 Responses to “Installing Mercurial with Apache”


  1. 1 campus security plan software Posted October 10th, 2009 - 5:29 am

    i encountered this error too, now with this post i know how to fix this problem i just follow your instruction and my problem was easily solved.

  2. 2 campus security plan software Posted October 10th, 2009 - 12:29 am

    i encountered this error too, now with this post i know how to fix this problem i just follow your instruction and my problem was easily solved.

Comments are currently closed.
blog comments powered by Disqus