位置:首页 > 编程专栏

SVN 提交时强制 要求 添加注释、备注

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


least 10 characters:标识最少10个字符.

C# 社区推荐