1. 程式人生 > >轉:VisualSVN Server提交前必須寫信息(備註)

轉:VisualSVN Server提交前必須寫信息(備註)

findstr tails href messages ans rem sdn lan have

修改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提交前必須寫信息(備註)