[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Messages from hooks

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-02-19 18:02:48 CET

On Thu, 2004-02-19 at 10:47, Philip Martin wrote:

> $ cat repo/hooks/pre-revprop-change
> #!/bin/sh
> echo bug >$2

Did you mean ">&2" there?

> $ cat /usr/local/apache2/logs/error_log
>
> [Thu Feb 19 16:45:38 2004] [notice] Apache/2.0.48 (Unix) DAV/2 SVN/0.37.0+ configured -- resuming normal operations
> [Thu Feb 19 16:45:45 2004] [error] [client 127.0.0.1] 'pre-revprop-change' hook failed with error output:
> bug
> [500, #165001]
> [Thu Feb 19 16:45:45 2004] [error] [client 127.0.0.1] (84)Invalid or incomplete multibyte or wide character: 'pre-revprop-change' hook failed with error output:
> bug
> oa [500, #165001]
> !õ #?ö ï [500, #165001]4] [error] [client 127.0.0.1]
> [Thu Feb 19 16:45:46 2004] [notice] child pid 1413 exit signal Segmentation fault (11)
> [Thu Feb 19 16:45:46 2004] [notice] child pid 1412 exit signal Segmentation fault (11)
>

Using trunk@HEAD code, I don't get a segfault like you, nor do I get
that weird bit of corrupted text in the errorlog (!õ #?ö ï). Instead, I
see:

[Thu Feb 19 11:02:19 2004] [error] [client 127.0.0.1]
'pre-revprop-change' hook
failed with error output:
/usr/local/svn/foorepo/hooks/pre-revprop-change: line 2: 1: No such file
or directory
  [500, #165001]
[Thu Feb 19 11:02:19 2004] [error] [client 127.0.0.1] (84)Invalid or
incomplete
multibyte or wide character: 'pre-revprop-change' hook failed with error
output:/usr/local/svn/foorepo/hooks/pre-revprop-change: line 2: 1: No
such file or directory
  [500, #165001]
[Thu Feb 19 11:02:19 2004] [error] [client 127.0.0.1] Could not execute
PROPPATCH. [500, #206]
[Thu Feb 19 11:02:19 2004] [error] [client 127.0.0.1]
'pre-revprop-change' hook
failed with error output:
/usr/local/svn/foorepo/hooks/pre-revprop-change: line 2: 1: No such file
or directory
  [500, #165001]
[Thu Feb 19 11:02:19 2004] [error] [client 127.0.0.1] (84)Invalid or
incomplete
multibyte or wide character: 'pre-revprop-change' hook failed with error
output:/usr/local/svn/foorepo/hooks/pre-revprop-change: line 2: 1: No
such file or directory
  [500, #165001]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 19 18:08:18 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.