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

Re: Passsing output of hook-script to client

From: Reinhard Brandstaedter <reinhard.brandstaedter_at_ams-engineering.com>
Date: 2005-04-06 14:44:50 CEST

Jochen Wendebaum wrote:
> Hi,
>> Is it possible to pass an error message from the pre-commit script to
>> the client so that it is displayed in the dialogue? How?
> I faced this problem too and solved it like this (as example):
> $SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" > /dev/null || ERROR=1
> if [ $ERROR = 1 ]; then
> echo "Please provide a log entry!" >&2
> exit 1
> fi

OK thanks for the answers...stderr is the facility used...not stdout.
Is that documented anywhere in the book or did I just miss it?


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 6 21:02:25 2005

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.