Closed JustDevZero closed 4 years ago
Looks like is related to another error i've got on the past:
https://github.com/frej/fast-export/issues/171
If I try to map authors on surepo, it fucks up.
Well, no problem, can be skipped.
[This is a canned reply to issues that contain too little information for effective troubleshooting]
Please have a look at this blog post about writing effective bug reports. For fast-export you should at least:
Check that your issue is not already covered by an existing issue. If your issue is similar, but not identical to an existing issue, provide a reference.
Report the version of the fast-export you are running, tag and/or hash.
Check if your problem is solved by using the latest released hg-fast-export.
Check that your installed versions of Python and Mercurial meet the minimum requirements as specified in the README.
Explain what you are trying to do, how you are doing it and in what environment. This includes relevant parts of the used mapping files.
If your source repository is publicly available, give the URL.
If hg-fast-export gives an error message and a backtrace, include that in the issue. Also include the relevant parts of the crash report created by git fast-import
.
Unluckly the code is not public to provide a link.
it appears the problem was caused by subrepo rewriting, so instad of rewriting at the time of conversion, I opted for rewrite the history once it's already on git.
Trying to convert an error prompts an error:
Command executed with:
hg-fast-export.sh -r /home/zero/Projects/migration/project -A ~/Projects/migration/authors --subrepo-map=/home/zero/Projects/migration/mapping.txt --hg-hash --hgtags
master: Exporting simple delta revision 1935/21890 with 2/492/174 added/changed/removed files Traceback (most recent call last): File "/home/zero/Projects/fast-export/hg-fast-export.py", line 719, in
plugins=plugins_dict))
File "/home/zero/Projects/fast-export/hg-fast-export.py", line 571, in hg2git
plugins)
File "/home/zero/Projects/fast-export/hg-fast-export.py", line 366, in export_commit
export_file_contents(ctx,man,added,hgtags,fn_encoding,plugins)
File "/home/zero/Projects/fast-export/hg-fast-export.py", line 210, in export_file_contents
refresh_gitmodules(ctx)
File "/home/zero/Projects/fast-export/hg-fast-export.py", line 196, in refresh_gitmodules
gitmodules+=refresh_hg_submodule(name,subrepo_info)
File "/home/zero/Projects/fast-export/hg-fast-export.py", line 172, in refresh_hg_submodule
gitSha=marks_cache[int(revnum)]
KeyError: 10
I understand, that in mapping.txt should be the local relative or absolute path to the subrepo it self, which was converted without errors.
Same error if I remove hg-hash and hgtags.