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 这个文件需要加读写权限!!!否则不生效

相关推荐
曹牧3 天前
svn:“relocate”操作中出现“no uuid but wc has”的错误
svn
曹牧3 天前
svn: svn relocate ‌之externals‌
数据结构·svn
曹牧6 天前
在 Visual Studio(VS)中变更 SVN 地址
ide·svn·visual studio
曹牧6 天前
svn relocate
svn
曹牧6 天前
在 Eclipse 中变更 SVN 地址
java·svn·eclipse
金融小师妹6 天前
基于AI能源供给网络模型:霍尔木兹海峡扰动下的全球油品风险传导与区域“油荒概率”评估
深度学习·svn·逻辑回归·能源
disgare9 天前
SVN 使用教程总结
svn
金融小师妹10 天前
基于AI通胀预期建模与能源冲击传导机制的政策分析:高频信号下的风险再评估
人工智能·svn·能源
Digitally11 天前
无需 iTunes,如何将文件从电脑传输至 iPad?
svn·电脑·ipad
金融小师妹13 天前
AI利率路径重估:降息预期消退下,金价月度回撤超14%深度解析
深度学习·svn·逻辑回归·能源