修改svn日志信息

上一篇 / 下一篇  2010-01-27 09:48:49

服务器为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

这样就可以修改日志了,上面最后三行的意思如下:
如果修改的是svn:log(也就是日志)则返回0,通过,如果不是,输出要修改的不能被修改返回1

Unix/Linux解决方案:
只要将文件pre-revprop-change.tmpl改名为pre-revprop-change,并加上执行权限即可。具体步骤为右键点击属性,勾选执行权限。


TAG:

 

评分:0

我来说两句

Open Toolbar