首页 > 代码库 > 转:VisualSVN Server提交前必须写信息(备注)

转:VisualSVN Server提交前必须写信息(备注)

修改Pre-commit hook

@echo off
::    
:: Stops commits that have empty log messages.
::
@echo off
setlocal
rem Subversion sends through the path to the repository and transaction id
set REPOS=%1
set TXN=%2
rem check for an empty log message
svnlook log %REPOS% -t %TXN% | findstr . > nul
if %errorlevel% gtr 0 (goto err) else exit 0
:err
echo. 1>&2
echo 信息(备注)不允许为空,请填写信息然后重试 1>&2
exit 1

http://blog.csdn.NET/pksniq/article/details/24870077

转:VisualSVN Server提交前必须写信息(备注)