[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Changing the commit message after the fact

From: Michael W Thelen <mike_at_pietdepsi.com>
Date: 2005-02-03 20:32:06 CET

Gary Affonso wrote:
> I need to change some commit-messages on commits that have already been
> done. I did some Googling and it looks like this will work:
>
> (from the server)
>
> svnadmin setlog -r <revision_number> --bypass-hook <file_with_message>
>
> My questions:
>
> 1) There was a note that the above technique would blow away the "history".
> That worried me a little. What "history" does this kill?

It will leave no trace of the previous log message. If you'd like to
have the previous log message preserved, you should set up a
pre-revprop-change hook.

> 2) Is there really no good way to do this from a client?

You can do this from the client by using "svn propset" to change the
svn:log property associated with a revision. It's a revision property,
so you need to pass the --revprop flag. For example, put your new log
message in a file called "log.msg" and run this to change the log
message for revision X:

svn propset svn:log --revprop -rX -F log.msg svn://repos/url

I believe that in order to do this, you *must* set up a
pre-revprop-change hook on the server, because of the possibility of
losing the old log message forever (or accidentally losing the wrong
one, if you specify a wrong X).

--
Michael W Thelen
It is a mistake to think you can solve any major problems just with
potatoes.       -- Douglas Adams

Received on Thu Feb 3 20:37:06 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.