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…
在Windows环境 在SVN的Repositories路径,E:\Repositories\demo20170408\hooks: 创建pre-commit.bat批处理文件. 文件内容: @echo off set SVNLOOK="D:\Program Files\VisualSVN Server\bin\svnlook.exe" setlocal set REPOS=%1 set TXN=%2 rem check that logmessage contains at leas…
会报错: Error: Commit blocked by pre-commit hook (exit code 1) with output: Error: [Commit failed]: Empty log message not allowed. Error: If you want to break the lock, use the 'Check For Modifications' dialog or the repository browser.…