You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Markus Fischer <ma...@fischer.name> on 2006/06/08 07:37:11 UTC

On dump/load, change authors?

-----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?

thanks
- - Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEh9On1nS0RcInK9ARAoZtAJ9Socr2mL9LkUNMf85i3RrPHdJujwCfe2fF
TBwSQVYhLWZYPeznxfvYudU=
=8uTC
-----END PGP SIGNATURE-----

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

Re: On dump/load, change authors?

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 6/8/06, Markus Fischer <ma...@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

Re: On dump/load, change authors?

Posted by Rainer Sokoll <R....@intershop.de>.
On Thu, Jun 08, 2006 at 09:37:11AM +0200, Markus Fischer wrote:

> 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).

You need to use a stream editor like sed, perl, awk...
Or maybe you dump/edit/load version by version to get smaller files.

Rainer

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