pre-commit hook 设置
@echo off
set SVN_BINDIR="D:\software\VisualSVN Server\bin"
set REPOS=%1
set TXN=%2
%SVN_BINDIR%\svnlook log "%REPOS%" -t "%TXN%" | findstr "." > nul
if %errorlevel% gtr 0 goto err
exit 0
:err
echo 请务必添加注释. 要求写明提交原因. Commit aborted! 1>&2
exit 1
把以上的代码放至SVN的 pre-commit hook 设置中即可。以上是起码要输入一个字符