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

Re: Reporting Errors from hook-scripts

From: Olivier FOURDAN <olivier.fourdan_at_regis-dgac.net>
Date: 2004-04-15 16:53:19 CEST

Lukas,

You need to redirect the output to stderr, under "bash" (default shell
on Linux), use something like:

echo "Commit Access not granted:" >&2

Cheers,
Olivier.

Lukas Ruf wrote:

>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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 15 16:55:44 2004

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

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