windows版本: 1.新建一个名为pre-commit.bat的文件并将该文件放在创建的库文件的hooks文件夹中 2.pre-commit.bat文件的内容如下: @echo off set SVN_BINDIR="C:\ProgramFiles\Subversion" set SVNLOOK="E:\freescm\freescm\SVN\bin\svnlook.exe" setlocal set REPOS=%1 set TXN=%2 rem check…
@echo off setlocal set SVN_BINDIR=C:/Program Files/VisualSVN Server/bin/ set REPOS=%1 set TXN=%2 rem check that logmessage contains at least 10 characters svnlook log "%REPOS%" -t "%TXN%" | findstr ".........." > nul endlo…
Visual SVN Server下 右键项目 “所有任务”>“Manage Hooks” >选中Pre-commit hook然后edit编辑,添加如下代码 @echo off setlocal set REPOS=% set TXN=% rem check that logmessage contains at least characters rem ...代表3个字符 svnlook log "%REPOS%" -t "%TXN%" | fin…