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下設置提交備註必填(親測)
相關文章
相關標籤/搜索