moving to largefile?

Matt Harbison mharbison72 at gmail.com
Wed Jul 25 19:14:52 UTC 2018


> On Jul 25, 2018, at 3:06 PM, Augie Fackler <raf at durin42.com> wrote:
> 
> 
> 
>> On Jul 25, 2018, at 07:39, Neal Becker <ndbecker2 at gmail.com> wrote:
>> 
>> If I've already added some data files without using largefile, is it 
>> straightforward to then change to using largefile for those files?
> 
> I think it is for lfs, but not for largefiles. Matt should know more.

For lfs, you can use the convert extension to rewrite the large files as lfs.  In theory, the hashes won’t change, so lfs and non-lfs repos are interoperable. In practice, there’s a bug in convert that *may* cause the hashes to change.

For largefiles, you can’t convert to lfs or normal without changing hashes. You can probably remove the largefiles, and then re-add them with —large.  I have no idea if it will let you do that in one commit, or if you need to commit the removal first.  I’m also not sure if the history of that file will be continuous because while it *looks* like it is tracking the same large file to the user, largefiles really tracks a different placeholder file.

>> 
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at mercurial-scm.org
>> https://www.mercurial-scm.org/mailman/listinfo/mercurial
> 



More information about the Mercurial mailing list