Found on the Internet is the practice, but I follow this step after the change does not work, do not write comments or still can be submitted:
Enter the warehouse Project/hooks directory, locate the Pre-commit.tmpl file, and rename it to Pre-commit.
Edit Pre-commit File:
Will:
$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
These three lines are commented out (preceded by the # symbol),
Add the following lines to this location:
logmsg= ' $SVNLOOK log-t "$TXN" "$REPOS" | grep "[A-za-z0-9]" | Wc-c '
If ["$LOGMSG"-lt 5]; #要求注释不能少于5个字符, you can customize
Then
ECHO-E "\nlog message Cann" t be empty! You are must input more than 5 chars as comment!. " 1>&2
Exit 1
Fi
Save, exit.
To add executable permissions to Pre-commit:
chmod +x Pre-commit
Original: HTTP://GLITTERLIFE.INFO/NODE/16