Visual svn设置提交必须填写备注

2018-05-08 17:47:11 浏览数 (1)

设置方法: 1、打开VisualSVN管理控制台 2、右键你要设置的代码仓库 3、所有任务-》Manage Hooks…… 4、编辑“Pre-commit hook”

@echo off :: :: Stops commits that have empty log messages. ::

@echo off

set svnlook=”D:/Program Files/VisualSVN Server/bin/svnlook.exe”   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

注意红色信息要改成你的svn路径

svn

0 人点赞