Commiting to hg repos with commit scripts using hgwebdir.cgi

Giorgos Keramidas keramida at
Sun Mar 23 10:59:32 CDT 2008

On Sun, 23 Mar 2008 23:52:45 +1100, Tim Groeneveld <tim at> wrote:
> Hello everybody!
> I am trying to get commit scripts working with hgwebdir.cgi, but so
> far have had very little luck so far. This is what I have done so far:
> tim at timg:/tmp$ cat /var/www/hg/commitTest/.hg/hgrc
> [hooks]
> changegroup = echo `date` &> /tmp/test

Commit hooks which print stuff on stdout will mess the `wire protocol'
of Mercurial itself, IIRC.

Try adding commit scripts which log to a file first.  There is an open
issue for this:

More information about the Mercurial mailing list