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

Re: On dump/load, change authors?

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-06-08 15:14:50 CEST

On 6/8/06, Markus Fischer <markus@fischer.name> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I want to merge one SVN Repos into another one with svnadmin dump/load,
> however I'ld need to change the author during this step. The original
> author is 'root' and I want to change it my username. I've looked into
> the dump format and it is easy to see what to change. However, my dump
> file though it only contains 15 revision is about 800MB in size and I
> can't open it in an editor (they try to load the complete file -> the
> machine only has 256MB).
>
> Are there any scripts or a build-in functoinality available for this?

I occasionally have to do this as part of importing new dumpfiles into
the ASF subversion repository, and I use a hacked version of
svndumptool to do it.

You can check out svndumptool from:

http://queen.borg.ch:81/svn/repos/trunk/svn/svndumptool

And then apply the attached patch.

I haven't tried to submit it upstream yet because it's kind of lame,
you have to manually hack the 'mapping' dict in svndump/tools.py to
include the usernames you want changed. Then you just use the copy
command, and the resulting dumpfile will have your changed authors.

Works for me, your milage may vary, some cars not for use with some sets, etc.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Thu Jun 8 15:20:30 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.