[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Mapping users in SVN-SVN repository migration?

From: Marko Asplund <marko.asplund_at_ixonos.com>
Date: Mon, 28 May 2012 09:15:12 +0300

On Thu, May 24, 2012 at 10:33 PM, Andy Levy <andy.levy_at_gmail.com> wrote:

> ...
> Subversion won't care that the names have changed (there is no
> technical requirement for you to do this at all), but your users will
> because they have to remember that Bob is now Robert, and Susan is now
> Sue, etc. If the names are similar or easy to remember, you may not
> have to do anything.
> You do not have to do this at the time of migrating the repository,
> though it may be convenient to do so.
> If I were in your position and had to rewrite those author names, I
> would do the following:
> 0) Migrate the repository to the new server
> 1) Make sure it works
> 2) Create a mapping (lookup table) of old names to new names
> 3) Write a script to iterate through each revision from 0 through the
> last revision committed on server A and do this:
> for (X in 1...last_rev) {
> oldauthor = svn propget --revprop svn:author --revision X <URL>
> newauthor = lookupNewNameFor(oldauthor)
> svn propset svn:author --revprop --revision X newauthor <URL>
> }
> where URL is the URL to the root of your repository

Subversion is integrated with other software development tools in our
development environment so having the authors account names set correctly
is very important for us.

I've been testing the approach you suggested and it seems to be working

Received on 2012-05-28 08:16:38 CEST

This is an archived mail posted to the Subversion Users mailing list.