You need to redirect the echo to stderr (that is, 1>&2). For example,
echo "Anonymous checkins are not permitted." 1>&2
> -----Original Message-----
> From: Lukas Ruf [mailto:ruf@rawip.org]
> Sent: 15 April 2004 04:25 PM
> To: Subversion Users
> Subject: Reporting Errors from hook-scripts
>
> Dear all,
>
> I would like to mention the problem why a transaction failed.
>
> After some fiddling around, I managed to configure
> commit-access-control.cfg appropriately such that when called from
> pre-commit commit-access-control.pl either allows writing or refuses.
>
> This results in an transaction report as follows:
> !81> svn commit -m write_lock Makefile
> Sending Makefile
> Transmitting file data .svn: Commit failed (details follow):
> svn: MERGE request failed on $DAV_PATH/'linux/2.4/upstream_tags/2.4.25'
> svn:
> 'pre-commit' hook failed with error output:
>
>
> I tried to add to pre-commit:
>
> if [ "$?" = "1" ]; then
> echo "Commit Access not granted:"
> exit 1
> fi
>
> But without success....
>
> Although only manicure, I would appreciate very much if anybody could
> help me to understand how an explanatory message can be given back.
>
> Thanks in advance!
>
> wbr,
> Lukas
> --
> Lukas Ruf | Wanna know anything about raw |
> <http://www.lpr.ch> | IP? -> <http://www.rawip.org> |
> eMail Style Guide: <http://www.rawip.org/style.html>|
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 15 17:04:51 2004