SVN限制Message提交的格式

限制Message提交的格式必须为以下格式

Version

Description

TPA

Doors

bash 复制代码
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\].* ]]; then
  exit 0
else
  echo -e "Message format error, please standardize the message format!"  1>&2
  exit 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 这个文件需要加读写权限!!!否则不生效

相关推荐
解道Jdon11 天前
JDK 27发布:紧凑对象头、G1默认、量子安全TLS
ide·windows·git·svn·eclipse·github·visual studio
User_芊芊君子14 天前
RapidSVN 鸿蒙 PC 适配全记录:用 ArkUI 重建工作台,打通本地 SVN 操作闭环
华为·svn·harmonyos
重生之我来学Python22 天前
Git-SVN 混合开发,从入门到精通!
开发语言·git·svn·github
青禾83722 天前
Git 与 SVN 完全指南:从集中式到分布式的版本控制
分布式·git·svn
是乐乐啊呀23 天前
版本控制 GIT 和 SVN
git·svn
page_qiu1 个月前
jekins 完整部署详细流程(集成 SVN 源码管理 + Maven 打包 + Jar 程序自动部署)
svn·maven·jar
aXin_ya1 个月前
SVN使用
svn
EXI-小洲1 个月前
Pycharm 使用SVN进行拉取或提交 - SVN基本使用
svn·pycharm·版本控制
EXI-小洲1 个月前
MacOS IDEA将本地项目代码上传至SVN空仓库
macos·svn·intellij-idea
▍ 小太阳 ☼2 个月前
如何让Codex读svn项目
svn·chatgpt