shell script hook

cheng mike mikecheng11 at gmail.com
Mon Jul 16 00:53:49 CDT 2007


2007/7/13, Matt Mackall <mpm at selenic.com>:
>
> 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..


Hi Matt,
Thanks for your reply. Based on your hint, I have fixed it. See below,
changegroup = hg update > /dev/null
Now it works fine.

cheers,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20070716/9c8e0bca/attachment.htm 


More information about the Mercurial mailing list