[PATCH] largefiles: cache new largefiles for new heads when pulling

Na'Tosha Bard natosha at gmail.com
Tue Jan 17 15:10:50 CST 2012


On Tue, Jan 17, 2012 at 9:56 PM, Matt Mackall <mpm at selenic.com> wrote:

> On Tue, 2012-01-17 at 16:36 +0100, Na'Tosha Bard wrote:
> > # HG changeset patch
> > # User Na'Tosha Bard <natosha at unity3d.com>
> > # Date 1326814529 -3600
> > # Node ID 453c8e098d89d29c725ef0c3bc609aa977c2f7c0
> > # Parent  d25169284e9883bfff74faf4fdafdd74a6a5ba27
> > largefiles: cache new largefiles for new heads when pulling
>
> I guess. Queued for default.


Do you think it would be a good idea to have an option to turn off this
behavior?

On one hand, the promise we make with largefiles is, "You'll only download
the largefiles you need."  In order to do pretty much anything meaningful
with another head (merge, rebase, or update to it), you will need to
download these largefiles.  So this doesn't really break that promise and
it fixes a workflow problem.

But I can imagine a situation, where you might not want this behavior -- if
you have a huge number of named branches, for example, with several large,
unique largefiles, and you are not sure when or if you will merge with any
of them.

If we think it would be a good idea to add an option for "don't cache
largefiles for new heads on pull", I'll be happy to do it.

Cheers,
Na'Tosha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120117/5a6b33d1/attachment.html>


More information about the Mercurial-devel mailing list