我想知道SVN强制提交注释的脚本,具体的编写步骤是怎么样的呀?
供你参考。你可以到svn俱乐部网站上去查资料啊,或者加svn俱乐部群:125194361
44367034
pre-commit.bat:
@echo off
set svnlook="svnlook.exe"
set REPOS=%1
set TXN=%2
rem check that logmessage contains at least 10 characters
%svnlook% log "%REPOS%" -t "%TXN%" | findstr ".........." > null
if %errorlevel% gtr 0 goto err
exit 0
:err
echo Log message <10 is not allowed. Commit aborted! 1>&2
exit 1