您的位置:首页 > 其它

SVN服务器端日志必须输入设置

2013-03-19 14:02 218 查看
@echo off

setlocal

rem get input parameters

set REPOS=%1

set TXN=%2

rem get log information to judge whether to commit or not

cd [svn的bin路径]

svnlook log %REPOS% -t %TXN% | findstr . > nul

if %errorlevel% gtr 0 goto err

exit 0

rem if you want to control ther character size of inputted comment , do it as follows

rem for example,the commet should exceed 10 character

rem svnlook log %REPOS% -t %TXN% | findstr .......... > nul

:err

echo 1>&2

echo Your commit has been blocked because you didn't give any log message 1>&2

exit 1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: