Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I rename an SVN User-Author?

Is there a direct way to rename a user's name in svn?

I've found this linux script only. I thought it would be easier. Does anybody know a windows-way to change it?

We are using VisualSvnServer as svn server and TortoiseSNV on clients.

like image 629
Odys Avatar asked Jan 23 '26 10:01

Odys


2 Answers

In TortoiseSVN:

  1. open the log dialog.
  2. Then enter the username in the filter so only those revisions show up which you want to change the author.
  3. select all those revisions
  4. right-click to get the context menu
  5. select "Edit author"
  6. enter the new author name, click OK
  7. wait
  8. done

Note: to change the author of multiple revisions you need TSVN 1.7 - in 1.6 it's only possible to change the author for one revision at a time.

To change the username for future commits as well, start the VisualSVN server manager (on the server), select the repository, right-click, choose "properties", then edit the username there.

like image 200
Stefan Avatar answered Jan 26 '26 00:01

Stefan


You can edit the revision property svn:author with TortoiseSVN as well so you can change it. This is only suitable if you have to change that only for a single revision or may be two...if you have more than ten you should thinking about writing a script. Furthermore it must be allowed to change revision properties by the server side which is usually not allowed.

like image 42
khmarbaise Avatar answered Jan 26 '26 00:01

khmarbaise



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!