Commiting to hg repos with commit scripts using hgwebdir.cgi

Tim Groeneveld tim at timg.ws
Sun Mar 23 21:47:37 CDT 2008


On Monday 24 March 2008 2:59:32 am Giorgos Keramidas wrote:
> > 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: http://www.selenic.com/mercurial/bts/issue706

Well, I could be wrong about this, but if I run "echo `date` &> /tmp/test" in 
a terminal it does not output anything to STDOUT.

tim at timg:~$ echo `date` &> /tmp/test
tim at timg:~$ cat /tmp/test
Mon Mar 24 13:47:24 EST 2008
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20080324/adc315a9/attachment.pgp 


More information about the Mercurial mailing list