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