<div class="gmail_quote">On Wed, Oct 19, 2011 at 5:22 AM, Na'Tosha Bard <span dir="ltr"><<a href="mailto:natosha@unity3d.com">natosha@unity3d.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/10/19 Greg Ward <span dir="ltr"><<a href="mailto:greg-hg@gerg.ca" target="_blank">greg-hg@gerg.ca</a>></span><br><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

<div>On Tue, Oct 18, 2011 at 4:38 PM, Carter, Eli <<a href="mailto:Eli.Carter@tektronix.com" target="_blank">Eli.Carter@tektronix.com</a>> wrote:<br>
> The largefiles extension talks a lot about a system-wide cache.  There are two problems with this.  First, this cache is per-user, not a system-wide.  And secondly, it is more accurately described as a 'store' than as a 'cache'.<br>


<br>
</div>I have been thinking about sending in a patch to rename it to "user<br>
cache", but I had not realized that it's really a store. Thanks for<br>
clarifying!<br>
<br>
(In fact, I was going to propose moving it to ~/.cache/hg-largefiles,<br>
since after all "it's a cache, it should go in ~/.cache to clarify<br>
that it's safe to dispose of". Oops! Good thing I didn't get around to<br>
that.)<br>
<div><br>
> Regarding 'system-wide' vs 'per-user':<br>
> The extension assumes files are in the system cache, but if one user is cloning a repository from another user on the same machine, those files _won't_ be in the "system-wide" cache, and the clone winds up without the largefiles (and spews "Can't get file locally" errors).<br>

</div></blockquote></div><div><br>Yes, I've seen that several times.  We need to fix it correctly . . . somehow.  It only seems to work if you happen to have the same username and password on both machines :-) <br><br>
</div><div class="im">
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div>

</div>Ick. Sounds like we need more test cases.<br>
<div><br>
> Therefore, there are two things I'd like to see:<br>
><br>
> 1: I'd like to have the extension populate $repo/.hg/largefiles in addition to ~/.largefiles (using hardlinks where possible), and reference it when looking for files.<br>
<br>
</div>Seems reasonable. Actually I'd like someone to explain to me why we<br>
need two complete copies of all the largefiles on the local system.<br>
;-) If that is in fact the case... so far I've mainly been reading the<br>
code rather than actually *using* largefiles.<br></blockquote></div><div><br>One use case: If you do branch-by-cloning server-side for example, your local clones can pull the largefiles they need out of the local cache rather than re-download them.<br>

 <br></div><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

Tweak: it should be ~/.hg-largefiles, not ~/.largefiles.<br>
<div><br>
> 2: I'd like to have an --all-largefiles option for hg clone and hg pull that downloads all versions of all largefiles referenced by any changeset included in the transfer.<br>
<br>
</div>Also seems reasonable, but it's unclear to me whether those downloaded<br>
revs belong in ~/.hg-largefiles or $repo/.hg/largefiles. The<br>
relationship between those two directories is still unclear to me.<br></blockquote></div></div></blockquote><div><br></div><div>Whatever the outcome of this discussion, I feel that having a config option to set where the global cache/store is kept is mandatory.  If I want to sandbox all of my Mercurial repositories to, say, /var/hg on its own partition, then I do not want a large amount of repository data to be stored in whatever home directory is associated with the Mercurial server user.  Imagine the Mercurial server running as the www user.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

<font color="#888888"><br>
Greg</font></blockquote></div><div><br>Cheers,<br>Na'Tosha <br></div></div><font color="#888888"><br clear="all"><br>-- <br><div><div><span style="color:rgb(153, 153, 153)"><b>Na'Tosha Bard</b></span></div><div><font color="#999999">Build & Infrastructure Developer | Unity Technologies</font></div>

<div><font color="#999999"><br></font></div><div><font color="#999999"><b>E-Mail:</b> <a href="mailto:natosha@unity3d.com" target="_blank">natosha@unity3d.com</a></font></div><div><font color="#999999"><b>Skype:</b> natosha.bard</font></div>

</div><br>
</font><br>_______________________________________________<br>
Mercurial-devel mailing list<br>
<a href="mailto:Mercurial-devel@selenic.com">Mercurial-devel@selenic.com</a><br>
<a href="http://selenic.com/mailman/listinfo/mercurial-devel" target="_blank">http://selenic.com/mailman/listinfo/mercurial-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>