This requirement can be easily achieved using svn's pre-commit hook .
Enter the warehouse hooks directory, find the pre-commit.tmpl file, rename it, and remove the suffix .tmpl.
Edit the pre-commit file:
$
SVNLOOK log -t "$TXN" "$REPOS" |
grep "[a-zA-Z0-9]" > /dev/null || exit 1
commit-access-control.pl "$REPOS" "$TXN" commit-access-control.cfg || exit 1
Comment out these three lines (preceded by # sign),
Enter the warehouse hooks directory, find the pre-commit.tmpl file, rename it, and remove the suffix .tmpl.
Edit the pre-commit file:
$
SVNLOOK log -t "$TXN" "$REPOS" |
grep "[a-zA-Z0-9]" > /dev/null || exit 1
commit-access-control.pl "$REPOS" "$TXN" commit-access-control.cfg || exit 1
Comment out these three lines (preceded by # sign),
Add the following lines in this location:
LOGMSG=`$SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" | wc -c`
if [ "$LOGMSG" -lt 5 ];#The comment must not be less than 5 characters, you can customize
then
echo -e "nLog message cann't be empty! you must input more than 5 chars as comment!." 1>&2
exit 1
fi
Don't forget to add the execute permission at the end