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

send error messages back to the client in hook scripts..

From: aaron smith <beingthexemplarylists_at_gmail.com>
Date: 2007-08-09 22:55:05 CEST

just trying a quick example.. here is my pre commit hook..

#make sure that the log message contains some text.
REPOS="$1"
TXN="$2"
SVNLOOK=/usr/bin/svnlook
$SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" > /dev/null || exit
"Please enter a commit message"

It denies me commits if no text is entered, but I don't see the message, is
this the correct way to send it back to the client? Thanks all..
Received on Thu Aug 9 22:53:25 2007

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.