服务器为windows方法:找到版本库中hooks目录下,将pre-revprop-change.tmpl复制为pre-revprop-change.bat
然后修改pre-revprop-change.bat文件中最后内容为:代码:
# Here is an example hook script, for a Unix /bin/sh interpreter.# For more examples and pre-written hooks, see those in
# the Subversion repository at
# [url]http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/[/url] and
# [url]http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/[/url]
rem Only allow log messages to be changed.
if "%4" == "svn:log" exit 0
echo Property '%4' cannot be changed >&2
exit 1