svn-all-fast-export / svn2git

:octopus: A fast-import based converter for an svn repo to git repos
GNU General Public License v3.0
262 stars 100 forks source link

Unable to use --resume-from #20

Open starseeker opened 8 years ago

starseeker commented 8 years ago

I'm trying to perform what is admittedly a rather complex svn2git conversion, as documented here:

https://sourceforge.net/p/brlcad/code/HEAD/tree/brlcad/trunk/misc/svn2git/

When I try to do a partial conversion and resume it with the --resume-from option, the process gets a few commits in and then crashes. It generates a log, and this seems to be the key issue:

fatal: mark :0 not declared

looking at the mark file in the repo, it does indeed start with :1 with no :0 entry present. Is this a known issue?

LauraLMann commented 6 years ago

I had the same problem, using --add-metadata-notes. I noticed the gitlog shows the notes are associated with mark :0, and that the post in the comment above was using --add-metadata-notes. So, I tried again but using plain --add-metadata. Now the --resume-from option seems to be working fine. Seems there's some kind of issue when using both --resume-from and --add-metadata-notes that breaks --resume-from.

uqs commented 5 years ago

Similar problem here, but it's due to an upgraded SVN and/or git version.

In production I have; $ git --version git version 2.21.0 $ svn --version svn, version 1.12.0 (r1857323)

and incremental runs are fine. On a test system this was also working fine for years, but now it's broken. The initial run from rev1 up to rev400k works just fine, but then trying an iterative run immediately afterwards craps out:

fast-import crash report: fast-import process: 32409 parent process : 32408 at 2019-06-20 21:06:10 +0000

fatal: mark :0 not declared

On that system I have: $ git --version git version 2.21.0 $ svn --version svn, version 1.12.0 (r1857323)

I am using svn2git/svn-all-fast-export --add-metadata-notes --identity-domain foo.org I haven't tried w/o the metadata-notes yet, but I'd really like to keep them to allow mapping of git to SVN commits and vice versa.

Thanks