Editing subversion commit messages

Any plans to implement in IDEA so that you can look at the subversion change history for a file, and then pick any of those versions and edit the Commit Message???

From the Apache Subversion FAQ at http://subversion.apache.org/faq.html#change-log-msg:

How do I change the log message for a revision after it's been committed?

The first way is for the repository administrator to enable revision property modifications.  This is done by creating a hook called "pre-revprop-change" (see this section in the Subversion book for more details about how to do this).  The "pre-revprop-change" hook has access to the old log message before it is changed, so it can preserve it in some way (for example, by sending an email).  Once revision property modifications are enabled, you can change a revision's log message by passing the --revprop switch to svn propedit or svn propset, like either one of these:

$ svn propedit -r N --revprop svn:log URL
$ svn propset -r N --revprop svn:log "new log message" URL


where N is the revision number whose log message you wish to change, and URL is the location of the repository.  If you run this command from within a working copy, you can leave off the URL.

We have this turned on in our subversion and something like this is already supported in Eclipse.  I'm the only IDEA user here and Eclipse guys are mocking me!!! (-:

Can we get this added to IDEA at some point?

(This is important because we use JIRA as well, and put our JIRA ticket name in our commit messages so JIRA can see ticket's associated svn changes.  But sometimes I set the wrong JIRA ticket name in a commit, and so it will show up in subversion history on the wrong ticket.  I just make a trivial change and recommit it so it shows up on the right ticket, but this doesn't fix the problem that it's already shown as changed for that completely incorrect ticket.  Editing the existing revisions commit message would hopefully fix this!)

Thanks,
-Alex

2 comments

Hello Alex,

Please file a feature request for this at http://youtrack.jetbrains.net/

Any plans to implement in IDEA so that you can look at the subversion
change history for a file, and then pick any of those versions and
edit the Commit Message???

From the Apache Subversion FAQ at
http://subversion.apache.org/faq.html#change-log-msg:

h3. How do I change the log message for a revision after it's been
committed?

+The first way is for the repository administrator to enable revision
property modifications.  This is done by creating a hook called
"pre-revprop-change" (see
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.
reposadmin.create.hooks in the Subversion book for more details about
how to do this).  The "pre-revprop-change" hook has access to the old
log message before it is changed, so it can preserve it in some way
(for example, by sending an email).  Once revision property
modifications are enabled, you can change a revision's log message by
passing the --revprop switch to svn propedit or svn propset, like
either one of these:+

+$ svn propedit -r N --revprop svn:log URL
$ svn propset -r N --revprop svn:log "new log message" URL+
+where N is the revision number whose log message you wish to change,
and URL is the location of the repository.  If you run this command
from within a working copy, you can leave off the URL.+

We have this turned on in our subversion and something like this is
already supported in Eclipse.  I'm the only IDEA user here and Eclipse
guys are mocking me!!! (-:

Can we get this added to IDEA at some point?

(This is important because we use JIRA as well, and put our JIRA
ticket name in our commit messages so JIRA can see ticket's associated
svn changes.  But sometimes I set the wrong JIRA ticket name in a
commit, and so it will show up in subversion history on the wrong
ticket.  I just make a trivial change and recommit it so it shows up
on the right ticket, but this doesn't fix the problem that it's
already shown as changed for that completely incorrect ticket.
Editing the existing revisions commit message would hopefully fix
this!)

Thanks,
-Alex
---
Original message URL:
http://devnet.jetbrains.net/message/5275670#5275670


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.