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
1.打开visualSVN Server2.打开Repositories3.右键需要控制的项目->所有任务->manage hooks...4.选择Hooks tab,点击Pre-commit hook进入编辑界面5.将以下的内容复制到输入框中 @echo off :: :: Stops commits that have empty log messages. :: @echo off setlocal rem Subversion sends through the path to the
在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