#!/bin/sh
# Make sure that the log message contains some text.
# Introspect the current transaction using svnlook, pipe 
# the content through a grep for any alphanumeric characters 
# and extract the byte count.
SVNLOOK=/usr/bin/svnlook
LOGMSG=`$SVNLOOK log -t "$2" "$1" | grep "[a-zA-Z0-9]" | wc -c`
# Prepare an error-message
# If the byte count is 0, display an error message
if [ "$LOGMSG" -lt 1 ]; then
 echo "Please provide a log message when committing changes." 1>&2
 exit 1
fi
