Loading... 今天搭建完SVN服务后,修改提交的日志报如下错误: Error:svn: E165006: Repository has not been enabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook 后来查阅资料,最中解决: cp pre-revprop-change.tmpl pre-revprop-change 然后赋予可以执行的权限: chmod a+x pre-revprop-change 因自带的允许任何用户修改提交日志。改为如下代码: REPOS="$1" REV="$2" USER="$3" PROPNAME="$4" ACTION="$5" if [ "$USER" != $(/usr/bin/svnlook author -r "$2" "$1") ]; then echo "author error!" >$2 exit 1 elif [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0 fi echo "Changing revision properties other than svn:log is prohibited" >&2 exit 1 Last modification:January 30, 2018 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的文章对你有用,请随意赞赏