设置subversion的一些问题汇总


  1. 设置subversion可以修改历史日志;


设置subversion可以修改历史日志
在Unix是,找到版本库位置的hooks目录下,有一个名为pre-revprop-change.tmpl的文件,将其重命名为pre-revprop-change,并加上可执行属性即可。

在windows下,将hooks目录下的文件pre-revprop-change.tmpl改名为pre-revprop-change.bat,并修改其中内容为:

  1. # Here is an example hook script, for a Unix /bin/sh interpreter.# For more examples and pre-written hooks, see those in
  2. # the Subversion repository at
  3. # [url]http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/[/url] and
  4. # [url]http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/[/url]
  5. rem Only allow log messages to be changed.
  6. if "%4" == "svn:log" exit 0
  7. echo Property '%4' cannot be changed >&2
  8. exit 1

备注:windows下的修改没有测试,仅供参考。
本修改参考自:http://www.iusesvn.com/bbs/thread-95-1-1.html。


感谢您的关注。您现在可以 留言(0)留下通告地址



Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image