设置SVN提交备注必填

1、打开SVN服务器上SVN服务器端;

2、右键点击项目,选择ALL TASKS,选择Manage Hooks;


设置SVN提交备注必填
3、点击选中Hooks选项卡,选中Pre-commit hook

4、点击左下方的edit按钮
5、在弹出框中输入以下代码,后点击ok,apply:
@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 Empty log message not allowed. Commit aborted! 1>&2
exit 1

相关文章:

  • 2021-05-27
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
  • 2021-12-18
  • 2022-02-16
猜你喜欢
  • 2022-12-23
  • 2021-11-07
  • 2022-01-30
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案