Search code examples
svnsvnadmin

How do I batch rewrite an SVN log?


I need to do a search/replace over the names of users making changes to my SVN repository; we're making some organizational changes so I need to change 'fantasticMan' as the author of various changes in the log to 'authorA' (just an example).

My idea was to svn dump and then do a search/replace over the dump file. The problem is that after the first checkout, it only gets to revision 1; when I was doing an svnadmin load command I got this message: svnadmin: Dumpstream data appears to be malformed. I suspect that there are some checksums in the log to ensure the integrity of the dumpfile so I can't just do a search and replace over the dumpfile.

How do I make changes on the author names of a repository? (If there's a way to do this without having to dump the repository and then reload the dump, I'd prefer that solution.)


Solution

  • Is there a way to change a SVN users username through the entire repository history?

    Using svndumptool works best. A.H.'s way would take me much longer.