svn提交强制填写日志

svn提交强制填写日志
@echo off
setlocal
set REPOS=%1
set TXN=%2
rem check that logmessage contains at least 5 characters
svnlook log "%REPOS%" -t "%TXN%" | findstr "....." > nul
if %errorlevel% gtr 0 goto err
exit 0
:err
echo 请填写日之后再次提交,不少于5个字符! 1>&2
exit 1

你可能感兴趣的:(svn提交强制填写日志)