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