shell script hook

Matt Mackall mpm at selenic.com
Thu Jul 12 12:38:11 CDT 2007


On Wed, Jul 11, 2007 at 05:57:21PM +0800, cheng mike wrote:
> Hi All,
> I add a shell script hook to auto update the central repository in hgrc. It
> report below error message but the central repo is updated. Does anyone know
> the reason? The mercurial is 0.93 and the OS is opensolaris.
> 
> hgrc:
> [hooks]
> changegroup = hg update
> 
> $ hg push
> pushing to http://ns-x4200-15.sfbay/hg/mytag/
> searching for changes
> abort: HTTP Error 500: Internal Server Error
> 
> 
> $more error_log
> [Wed Jul 11 02:36:25 2007] [error] [client 192.168.16.190] malformed header
> from script. Bad header=1 files updated, 0 files merge: hgwebdir.cgi

The output of your hook went to the web server as part of the CGI
script's output.

Perhaps we ought to redirect that output. But it's not clear to where..

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list