名称

svnadmin setlog — Set the log message on a revision.

概要

svnadmin setlog REPOS_PATH -r REVISION FILE

描述

Set the log message on revision REVISION to the contents of FILE.

This is similar to using svn propset --revprop to set the svn:log property on a revision, except that you can also use the option --bypass-hooks to avoid running any pre- or post-commit hooks, which is useful if the modification of revision properties has not been enabled in the pre-revprop-change hook.

警告

修订版本属性不在版本控制之下的,所以这个命令会永久覆盖前一个日志信息。

选项

--revision (-r) REV
--bypass-hooks

例子

设置修订版本19的日志信息为文件msg的内容:

$ svnadmin setlog /var/svn/repos/ -r 19 msg