Hi Lübbe,
thank you very much for your answer and i am sorry, that i have written
to the wrong mailing-list. However your snippet does not do it. I
changed the pre-commit-hook to this:
REPOS="$1"
TXN="$2"
SVNLOOK=/usr/bin/svnlook
# check that logmessage contains at least 10 alphanumeric characters
LOGMSG=`$SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" | wc -c`
if [ "$LOGMSG" -lt 10 ];
then
echo -e "\nLeere Log-Meldung ist nicht zulaessig. Uebertragung
abgebrochen!\nEmpty log message not allowed. Commit aborted!" 1>&2
exit 1
fi
exit 0
but i can´t see the message. i am running subversion 1.0.5-2.1 on SuSE
9.1 and TortoiseSVN 1.0.8-UNICODE_svn-1.0.6
Can i modify the scripts without rebooting? Or what else can be wrong?
Thank you very much
Thomas
Lübbe Onken wrote:
>Hi Thomas,
>
>I sent you the following reply yesterday. Don't you read your mails?
>
>Cheers
>- Lübbe
>
>--
> ___
> oo // \\ "De Chelonian Mobile"
> (_,\/ \_/ \ TortoiseSVN
> \ \_/_\_/> The coolest Interface to (Sub)Version Control
> /_/ \_\ http://tortoisesvn.tigris.org
>
>
>
>
>
> ------------------------------------------------------------------------
>
> Subject:
> RE: [TSVN] how to display pre-commit-hook error messages
> From:
> Lübbe Onken <l.onken@rac.de>
> Date:
> Thu, 30 Sep 2004 14:01:07 +0200
> To:
> "'dev@tortoisesvn.tigris.org'" <dev@tortoisesvn.tigris.org>
>
> To:
> "'dev@tortoisesvn.tigris.org'" <dev@tortoisesvn.tigris.org>
>
>
>Hi Thomas,
>
>You're asking on the wrong list. That's a svn user question, but here's your
>answer. The 1>&2 does the trick.
>
>---SNIP---
># check that logmessage contains at least 10 alphanumeric characters
>LOGMSG=`$SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" | wc -c`
>if [ "$LOGMSG" -lt 10 ];
>then
> echo -e "\nLeere Log-Meldung ist nicht zulaessig. Uebertragung
>abgebrochen!\nEmpty log message not allowed. Commit aborted!" 1>&2
> exit 1
>fi
>---SNIP---
>
>Cheers
>- Lübbe
>
>--
> ___
> oo // \\ "De Chelonian Mobile"
> (_,\/ \_/ \ TortoiseSVN
> \ \_/_\_/> The coolest Interface to (Sub)Version Control
> /_/ \_\ http://tortoisesvn.tigris.org
>
>
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
>For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
>
Received on Fri Oct 1 12:15:20 2004