2012/8/9 Matt Harbison <span dir="ltr"><<a href="mailto:matt_harbison@yahoo.com" target="_blank">matt_harbison@yahoo.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Na'Tosha Bard wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2012/8/7 Matt Harbison <<a href="mailto:matt_harbison@yahoo.com" target="_blank">matt_harbison@yahoo.com</a><br>
<mailto:<a href="mailto:matt_harbison@yahoo.com" target="_blank">matt_harbison@yahoo.<u></u>com</a>>><div class="im"><br>
<br>
    # HG changeset patch<br>
    # User Matt Harbison <<a href="mailto:matt_harbison@yahoo.com" target="_blank">matt_harbison@yahoo.com</a><br></div>
    <mailto:<a href="mailto:matt_harbison@yahoo.com" target="_blank">matt_harbison@yahoo.<u></u>com</a>>><div class="im"><br>
    # Date 1343696201 14400<br>
    # Node ID e45f7b1b766e67c56c40a92c86dd82<u></u>3b903eaf96<br>
    # Parent  40fc3ecfffc7727537a11f5a26064e<u></u>97f1dd0e7b<br>
    largefiles: add --large to init command to immediately mark as a<br>
    largefiles repo<br>
<br></div><div class="im">
How does this work out in the following use case:<br>
<br>
1) User creates a normal repo, then adds and commits a file with<br>
"-large", turning the repo into a largefiles repo.<br>
2) User strips this commit, so now the repo now has no largefiles.<br>
<br>
I think expected behavior would be that the repo is now no longer a<br>
largefiles repo, and subsequent "hg add" calls will not possibly add<br>
files as largefiles, but I don't think that would happen with this change.<br>
<br>
</div></blockquote>
<br>
I hadn't thought about strip, but I agree that seems like reasonable behavior.  You're correct though- it gets added as large instead.  As an aside, why does the requirement stay when this occurs?  Is that file meant to be append only?</blockquote>
<div><br>I just think it's never been the case that we've needed to *remove* a requirement from the requires file, so there is no mechanism for doing it.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If the user had run "hg init -large", (instead of running plain "hg<br>
init" and then adding a file with -large), then I believe expected<br>
behavior would be that the repo would forever be a largefiles repo.<br>
However I'm not sure how we can distinguish this.<br>
<br>
</blockquote>
<br></div>
Agreed.  I'm not sure either, and I'm not sure if there are other places that could benefit from remembering user choices that don't have an immediate effect, meaning this should be solved generically (I can't think of any cases).<br>

<br>
The best I can think of is to add a file in .hg/largefiles that isn't tracked.  I don't think it necessarily has to have content for this. The benefit of it not being tracked is it doesn't have to be filtered out of all command output; the downside is cloning such a repo results in a normal repo with the current code.  Maybe overrideclone() can detect and transfer this file/setting somehow, like how bookmarks are transferred?  (I have no idea how bookmarks and clone actually works.)<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><div><br>This seems like a reasonable solution and should be possible to use a similar mechanism to how we transfer bookmarks from remote to local repositories.<br><br>Cheers,<br>Na'Tosha<br>
</div></div><br>-- <br><div><div><span style="color:rgb(153,153,153)"><b>Na'Tosha Bard</b></span></div><div><font color="#999999">Software Developer | Unity Technologies - Copenhagen<br></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>