当前位置: 首页 > news >正文

SVN限制Message提交的格式

限制Message提交的格式必须为以下格式
[Version]
[Description]
[TPA]
[Doors]

REPOS="$1"
TXN="$2"# Make sure that the log message contains some text.
SVNLOOK=/usr/bin/svnlook
MSG=`$SVNLOOK log -t "$TXN" "$REPOS"`if [[ $MSG =~ ^\[Version\].*\[Description\].*\[TPA\].*\[Doors\].* ]]; thenexit 0
elseecho -e "Message format error, please standardize the message format!"  1>&2exit 1
fi# Check that the author of this commit has the rights to perform
# the commit on the files and directories being modified.# All checks passed, so allow the commit.
exit 0

pre-commit 这个文件需要加读写权限!!!否则不生效

http://www.lryc.cn/news/105718.html

相关文章:

  • windows下安装anaconda、pycharm、cuda、cudnn、PyTorch-GPU版本
  • 【计算机网络】传输层协议 -- UDP协议
  • python制作超高难度走迷宫游戏,你要来挑战嘛~(赶紧收藏)
  • springboot整合tio-websocket方案实现简易聊天
  • 《TCP IP网络编程》第十三章
  • 驱动开发 day8 (设备树驱动,按键中断实现led亮灭)
  • DataX将MySQL数据同步到HDFS中时,空值不处理可以吗
  • P3373 【模板】线段树 2(乘法与加法)(内附封面)
  • 实现langchain-ChatGLM API调用客户端(及未解决的问题)
  • 【AltWalker】模型驱动:轻松实现自动化测试用例的生成和组织执行
  • 大数据课程E3——Flume的Sink
  • 如何快速做单元测试?
  • 不同对象的集合转换
  • 【机器学习】Gradient Descent
  • 直播读弹幕机器人:直播弹幕采集+文字转语音(附完整代码)
  • K3s vs K8s:轻量级对决 - 探索替代方案
  • dev控件gridControl,gridview中添加合计
  • SpringBoot基础认识
  • 二十三种设计模式第十九篇--命令模式
  • STM32基础入门学习笔记:基础知识和理论 开发环境建立
  • Qt应用开发(基础篇)——数值微调输入框QAbstractSpinBox、QSpinBox、QDoubleSpinBox
  • html | 无js二级菜单
  • appium的基本使用
  • Dockerfile构建nginx镜像(编译安装)
  • 手机屏幕视窗机器视觉定位软硬件-康耐德
  • Databend 开源周报第 104 期
  • 用于医学图像分类的双引导的扩散网络
  • 8.2day03 Redis入门+解决员工模块
  • 通过案例实战详解elasticsearch自定义打分function_score的使用
  • SpringBoot第28讲:SpringBoot集成MySQL - MyBatis-Plus方式