原文地址:http://blog.csdn.net/benkaoya/article/details/7784545
不懂bat,弄了很久都没成功,后来看到这个资料才弄好
@echo off
setlocal
set REPOS=%1
set TXN=%2
svnlook log %REPOS% -t %TXN% | findstr .>nul
rem 如果限制要超过10个字符,则使用下面这个
rem svnlook log %REPOS% -t %TXN% | findstr ..........>nul
if %errorlevel% gtr 0 ( goto err ) else exit 0
:err
echo. 1>&2
echo ~~~~~~~~~~~大神,请写一些日志吧~~~~~~ 1>&2
echo. 1>&2
exit 1