Friday, March 18, 2011

Edit existing SVN commit messages

I tend to forget things easily and for that reason I often go to my trusted old friend, Google to find stuff. But at times this can be cumbersome since Google results tend to be very cluttered, especially when trying to find tech stuff.

So I took up the advice of @lornajane and write down my finding i my blog, mainly because it is easier to find it again. And "Yes", I will forget it again and I will have to find the stuff again.

Sometimes the fingers work quicker than the brain and the eyes. I my case this often shows in log messages when committing new code. So here it is. If you want to change an exsisting commit message, use the command below.

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

N is the revision number and URL are the repository URL to the fil you changed.

NOTE you need to be administrator of the repository, in order for this to work. I mainly use Google Code for hosting code and if you are the repo owner, you are the administrator.

The above example where found here.

No comments: