@echo off
rem SVNLOOK 为 svnlook.exe 在 VisualSVN Server 安装目录\bin 中的路径
set SVNLOOK="D:\software\VisualSVN\bin\svnlook.exe"
setlocal
set REPOS=%1
set TXN=%2
rem "....." 代表5个字符(1个 . 代表1个字符)
%SVNLOOK% log %REPOS% -t %TXN% | findstr "....." > nul
if %errorlevel% gtr 0 goto err
exit 0
:err
echo 提交失败!请添加注释(注释内容不能少于5个字符)之后重新提交! 1>&2
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240826070647288-243310440.jpg)