Re: «large» files.

Augie Fackler raf at durin42.com
Wed Apr 20 13:09:01 UTC 2016


> On Apr 20, 2016, at 09:03, Uwe Brauer <oub at mat.ucm.es> wrote:
> 
> hello
> 
> I am using hg 3.0.1 and want to put _all_ files of a project under hg
> control.
> 
> I have the largefile extension enabled. The directory in question
> contains some «large» files, the largest a pdf file  being 17 M of size.
> 
> Now when running
> 
> hg add  largefile.pdf
> 
> I obtain
> 
> largefile.pdf: up to 51 MB of RAM may be required to manage this file
> (use 'hg revert largefile.pdf' to cancel the pending addition)
> 
> The machine in question is a server (with Kubuntu 10.04) which only as 1.5 G of RAM, but no
> active users.
> 
> So the question is: is this message harmful or not?

I think the message is helpful - it's been our experience that the median hg user doesn't want to track anything larger than a typical source file, and we have had users paint themselves into a corner by checking in extremely large files (hundreds of mb) and then not have enough free RAM on their system to be able to use the repository in the future. The cutoff for the message is 10MB, which might be a little small, but I'm of the opinion that most of the time (probably more than 90% of the time) someone adding a 10+ meg file is making a mistake.

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




More information about the Mercurial mailing list