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

Chancing the svn:author in a subversion dumpfile

From: Leon Oosterwijk <leono_at_daveramsey.com>
Date: 2006-09-01 18:29:16 CEST

All,
 
I am trying to migrate from CVS to SVN and have ran into a snag. I would
like to change some author names upon import. I tried to edit the dump
file with a script but this didn't seem to work very well. I understand
that the file is a binary format and therefore might not be easily
edit-able using a text-editor. I tried to use a Perl script but the file
still comes out malformed.
 
Here are 2 scripts. one works, the other doesn't:
 
# this works.
cat svndumpfile.dat | perl -e 'while (<STDIN>) {print $_}' >
svndumpfile.dat2
# this replaces the first occurance of leono with leon. (which happens
to be the first svn:author property in this particular case.
cat svndumpfile.dat | perl -e '$i = 0 ; while (<STDIN>) {if (m/^leono$/
&& $i == 0 ){$i++; $_ =~ s/^leono/leon/gi; }print $_}' >
svndumpfile.dat2

Does anyone have any pointers on how i can change the svn:author
property?
 
Thanks,
 
Leon
 
Received on Fri Sep 1 18:31:02 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.