hooks目录
建 pre-commit.bat
@echo off
setlocal
set REPOS=%1
set TXN=%2
rem check that logmessage contains at least 5 characters
"C:Program Files (x86)VisualSVN Serverinsvnlook" log "%REPOS%" -t "%TXN%" | findstr "....." > nul
if %errorlevel% gtr 0 goto err
exit 0
:err
echo 必须写注释5个字符以上. 终止提交! 1>&2
exit 1