Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Largefiles ignored #141

Open
1it opened this issue Aug 12, 2018 · 5 comments
Open

Largefiles ignored #141

1it opened this issue Aug 12, 2018 · 5 comments
Labels
contribution-required Maintainer has no time and/or no plans to work on this, interested parties should submit a patch feature-request This is a feature request patches-welcome The reporter is welcome to submit a patch to fix the reported issue

Comments

@1it
Copy link

1it commented Aug 12, 2018

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

@frej
Copy link
Owner

frej commented Aug 12, 2018

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 frej added feature-request This is a feature request contribution-required Maintainer has no time and/or no plans to work on this, interested parties should submit a patch labels Aug 12, 2018
@1it
Copy link
Author

1it commented Aug 13, 2018

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.

@frej
Copy link
Owner

frej commented Sep 17, 2018

Sure, send a patch.

@frej frej added the patches-welcome The reporter is welcome to submit a patch to fix the reported issue label Sep 17, 2018
@nkolotov
Copy link

nkolotov commented Mar 4, 2022

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.

@00brackett
Copy link

None exsit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution-required Maintainer has no time and/or no plans to work on this, interested parties should submit a patch feature-request This is a feature request patches-welcome The reporter is welcome to submit a patch to fix the reported issue
Projects
None yet
Development

No branches or pull requests

4 participants