How to edit log message already committed in Subversion?

前端 未结 10 1651
太阳男子
太阳男子 2020-11-27 23:54

Is there a way to edit the log message of a certain revision in Subversion? I accidentally wrote the wrong filename in my commit message which could be confusing later.

10条回答
  •  执笔经年
    2020-11-28 00:34

    I found a nice implementation of the server side pre-rev-prop-change hook at the svnforum: https://www.svnforum.org/forum/opensource-subversion-forums/scripts-contributions/8571-pre-revprop-change-shell-script-allows-commiters-to-change-own-log-within-x-hours

    It implements

    • user checking, that is only own commit messages can be edited.
    • Svn admin override; admin can edit anything.
    • time stamp comparison: only commits that are younger than certain time can be edited

    Grab it from there and edit at will. I'd rather not copy it here since I am not the original author and there is no copyright notice that would allow me to do it.

提交回复
热议问题