SVN注释强制提交

@echo off
setlocal
set REPOS=%1
set TXN=%2
set SVNLOOK="C:\Program Files\VisualSVN Server\bin"
rem check that logmessage contains at least 10 characters
rem .....
%SVNLOOK%\svnlook log "%REPOS%" -t "%TXN%" | findstr ".........." > nul
if %errorlevel% gtr 0 goto err
exit 0
:err
echo Empty log message not allowed. Commit aborted! 1>&2
exit 1

你可能感兴趣的:(SVN)