SVNwindow下设置提交备注必填(亲测)

SVNwindow下设置提交备注必填(亲测)

参考教程:http://bbs.vsharing.com/Management/PLM/1283314-1.html

@echo off

setlocal

set REPOS=%1

set TXN=%2

rem check that logmessage contains at least 10_characters

"C:\Program Files\TortoiseSVN\bin\svnlook" log "%REPOS%" -t "%TXN%" | findstr ".." > nul

if %errorlevel% gtr 0 goto err

exit 0

:err

echo You need to input at least 2 characters. Please resubmit after modification! 1>&2

exit 1

亲测效果:
SVNwindow下设置提交备注必填(亲测)






posted @ 2018-10-16 16:57  Newman·Li  阅读(414)  评论(0编辑  收藏  举报