fast-export
fast-export copied to clipboard
Largefiles ignored
It seems mercurial's largefiles ignored during export to git with hg-fast-export. Should I do convert to normal (without largefile) repository, or there is another option exists? hg lfconvert --to-normal current_repo normal_repo
Largefiles are not supported, so converting is probably a possible solution.
There is a half-baked patch in #65 but the contributor never addressed the review comments, so there is something to start from in case you need a hg-largfiles to git lfs bridge.
I think you should mention that in the project description. Because that isn't clear and someone can get broken project after the export with your tool.
Sure, send a patch.
Conversion of mercurial repository requires two steps:
- fetching all the "large" files into local hg repository
hg -v lfpull --rev "all()"
- exporting hg repository into new hg repository that won't rely on largefiles extension.
hg lfconvert --to-normal current_repo normal_repo
The first step can be problematic because
- executing it requires user to provide credentials
- remote largefiles storage must be online
- remote largefiles storage must still contain all the revisions for each file
In my case some older revisions of largefiles were already gone so complete export to git turned out to be impossible.
None exsit