VisualSVN设置客户端提交必须填写注释信息
在服务器相应仓库目录下hooks目录里,添加pre-commit.bat,内容如下:
@echo off setlocal set SVN_BINDIR="C:\Program Files\VisualSVN Server" set SVNLOOK="C:\Program Files\VisualSVN Server\bin\svnlook.exe" set REPOS=%1 set TXN=%2 rem check that logmessage contains at least 10 characters %SVNLOOK% log %REPOS% -t %TXN% | findstr ".........." >nul if %errorlevel% gtr 0 goto err exit 0 :err echo "提交文件时必须添加注释,不能少于10个字符,提交中止." 1>&2 exit 1