I'm attempting to convert an SVN repository to Git, mostly trying to piece together the process from these two blogs:
and this StackOverflow post:
I created a file to map SVN users to Git users (Wilkins calls it authors-transform.txt
, while Blok and 'cmcginty' call it users.txt
), even though I don't understand its purpose or how it's supposed to look. I used Wilkins's script,
svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" "}' | sort -u > authors-transform.txt
To the best of my understanding, I've successfully completed the procedure up to the point of running $ git svn fetch
. When I attempt that, the process ends with the error
$ git svn fetch
...
Author: jimi@JH.EXPERIENCE.ORG not defined in authors-transform.txt file
It isn't clear from the output that this is a breaking error in the process, but Blok identifies it as such. At this point, I'm supposed to "fix" the authors-transform.txt
file, but I have no clue how. This author is in the file:
jimi@JH.EXPERIENCE.ORG = jimi@JH.EXPERIENCE.ORG
There are no further lines I can add to authors-transform.txt
that will cause this user to be more included in the file that he already is.
The only additional StackOverflow questions I can find that's relevant to this topic are this one and this one. They mention spaces at the end of names, which I've fixed in authors-transform.txt
, and the file encoding of authors-transform.txt
. It's hard to imagine that encoding is an issue, since I'm not on Windows or using any other software that would interfere with encoding (I'm using Ubuntu 20.04), but in any case there are no actionable suggestions regarding encoding on those pages.
What am I supposed to do to make this process proceed?