Mercurial and lighttpd?

Doug Philips dgou at mac.com
Wed Jul 9 18:51:27 CDT 2008


Anyone out here using Mercurial under lighttpd? (I followed the directions at http://www.selenic.com/mercurial/wiki/index.cgi/HgWebDirStepByStep and aside from this issue, things are marvelous)...

Way back in January of this year, Jesse Glick opened issue 937 (error details from failed push hook not displayed to HTTP client).
That was supposedly fixed on March 17th by pmezard.
http://www.selenic.com/mercurial/bts/issue937

I'm running mercurial 1.0 on OpenSuSE 2.6.18.8-0.10-default underneath lighttpd version 1.4.13 (ssl) built on April 27th 2008, all installed from rpm files.

Just as Jesse was, I am using a pretxnchangegroup hook which returns True and puts out an error message (ui.warn()) if the push would result in more than one head.

Unfortunately, all the HTTP client sees is:
abort: HTTP Error 500: Internal Server Error

However, all the text that I want the client to see is instead in the lighttpd error log file.

Am I somehow not running the pmezard change?

Is lightttpd going to just eat my output?  I've googled for how to configure stderr with no luck.
Similarly trying to google for http and server errors and hooks, I found Jesse Glick's message, but nothing much else of help.
I'm sure this has to be simple, but I'm failing my google-fu...

When pushes don't create new heads, the client sees its normal output.
Neither case (Error or successful push) corrupts the repo.


Thanks,
    --Doug



More information about the Mercurial mailing list