fast-export icon indicating copy to clipboard operation
fast-export copied to clipboard

Largefiles ignored

Open 1it opened this issue 5 years ago • 5 comments

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

1it avatar Aug 12 '18 04:08 1it

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.

frej avatar Aug 12 '18 09:08 frej

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.

1it avatar Aug 13 '18 08:08 1it

Sure, send a patch.

frej avatar Sep 17 '18 12:09 frej

Conversion of mercurial repository requires two steps:

  1. fetching all the "large" files into local hg repository hg -v lfpull --rev "all()"
  2. 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.

nkolotov avatar Mar 04 '22 12:03 nkolotov

None exsit

00brackett avatar Apr 11 '23 16:04 00brackett