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

RE: [TSVN] how to display pre-commit-hook error messages

From: Lübbe Onken <l.onken_at_rac.de>
Date: 2004-09-30 14:01:07 CEST

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 Thu Sep 30 15:10:00 2004

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