把下边的命令粘贴进去,应用就可以了。
Windows.bat
@
echo off
setlocal
set REPOS=%
1
set TXN=%
2
svnlook log
%REPOS% -t
%TXN% | findstr "........" >
nul
if %errorlevel% gtr 0 goto :err_action
svnlook log
%REPOS% -t
%TXN% | findstr /ic:" " >
nul
if %errorlevel% gtr 0 goto :success
:err_action
echo 必须添加注释,至少
8个字符. >&
2
goto :err_exit
:err_exit
exit 1
:success
exit 0
Linux.sh
参考这里
参考出处:
出处
转载请注明原文地址: https://www.6miu.com/read-11341.html