摘要:svn 強制送交寫註解 , win32 版.
pre-commit.bat
@echo off
set REPOS=%1
set TXN=%2
SVNLOOK log -t "%TXN%" "%REPOS%"|findstr "....." > nul || GoTo Error
GoTo OK
:OK
echo Committed OK 1>&2
exit 0
:Error
echo. 1>&2
echo 請摘要說明送交內容 1>&2
echo 不然鬼才知道你送交的內容是啥 1>&2
echo 感謝您的合作 XD 1>&2
exit 1
set REPOS=%1
set TXN=%2
SVNLOOK log -t "%TXN%" "%REPOS%"|findstr "....." > nul || GoTo Error
GoTo OK
:OK
echo Committed OK 1>&2
exit 0
:Error
echo. 1>&2
echo 請摘要說明送交內容 1>&2
echo 不然鬼才知道你送交的內容是啥 1>&2
echo 感謝您的合作 XD 1>&2
exit 1