Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the committer of an old revision in SVN?

Tags:

svn

I have a whole heap of legacy code that I checked into my SVN repository. I checked it in under my user name. I'd like to change the author of that commit to another user, 'legacy', in order to clean up the svn blame printouts.

like image 663
Gordon Wilson Avatar asked Dec 30 '22 06:12

Gordon Wilson


1 Answers

You need to have have a pre-revprop-change hook in your repository hooks directory that will allow changes to the svn:author property. (An executable script containing just "exit 0" will do.) Once you have this, then you can do:

svn propedit --revprop -rrev svn:author url

and make the necessary changes.

like image 89
Peter S. Housel Avatar answered Jan 01 '23 21:01

Peter S. Housel