SVN强制用户添加注释

来源:互联网 发布:lr软件怎么下载 编辑:程序博客网 时间:2024/05/22 06:24
vim pre-commit# Check that the author of this commit has the rights to perform# the commit on the files and directories being modified.#commit-access-control.pl "$REPOS" "$TXN" commit-access-control.cfg || exit 1#强制用户添加注释LOGMSG=`$SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" | wc -c`if [ "$LOGMSG" -lt 7 ]then   echo -e "注释信息不能为空,请添加至少7个字符的注释" 1>&2   exit 1 fi# All checks passed, so allow the commit.exit 0

原创粉丝点击