SVN强制注释

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 Server\bin\svnlook" log "%REPOS%" -t "%TXN%" | findstr "....." > nul
if %errorlevel% gtr 0 goto err
exit 0
:err
echo 必须写注释5个字符以上. 终止提交! 1>&2
exit 1

posted @ 2013-07-26 14:48  ahuo  阅读(350)  评论(0编辑  收藏  举报