2012/6/20 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">
# HG changeset patch<br>
# User Matt Harbison <<a href="mailto:matt_harbison@yahoo.com">matt_harbison@yahoo.com</a>><br>
# Date 1339984668 14400<br>
# Node ID 6f8473232a828efca13bac418e407e505801f55b<br>
# Parent  132ea1736751cb02b16992cf421e7de8bad888a1<br>
largefiles: fix a traceback when archiving a subrepo in a subrepo<br>
<br>
This regression was introduced in 43fb170a23bd.<br>
<br>
diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py<br>
--- a/hgext/largefiles/overrides.py<br>
+++ b/hgext/largefiles/overrides.py<br>
@@ -850,7 +850,7 @@<br>
<br>
     for subpath in ctx.substate:<br>
         sub = ctx.sub(subpath)<br>
-        sub.archive(repo.ui, archiver, prefix)<br>
+        sub.archive(ui, archiver, prefix)<br>
<br>
 # If a largefile is modified, the change is not reflected in its<br>
 # standin until a commit. cmdutil.bailifchanged() raises an exception<br>
diff --git a/tests/test-subrepo-deep-nested-change.t b/tests/test-subrepo-deep-nested-change.t<br>
--- a/tests/test-subrepo-deep-nested-change.t<br>
+++ b/tests/test-subrepo-deep-nested-change.t<br>
@@ -98,3 +98,35 @@<br>
   path sub2<br>
    source   ../sub2<br>
    revision 53dd3430bcaf5ab4a7c48262bcad6d441f510487<br>
+<br>
+Check that deep archive works with largefiles (which overrides hgsubrepo impl)<br>
+This also tests the repo.ui regression in 43fb170a23bd, and that lf subrepo<br>
+subrepos are archived properly.<br>
+Note that add --large through a subrepo currently adds the file as a normal file<br>
+<br>
+  $ cd cloned<br>
+  $ echo "large" > sub1/sub2/large.bin<br>
+  $ hg --config extensions.largefiles= add --large -R sub1/sub2 sub1/sub2/large.bin<br>
+  $ echo "large" > large.bin<br>
+  $ hg --config extensions.largefiles= add --large large.bin<br>
+  $ hg --config extensions.largefiles= ci -S -m "add large files"<br>
+  committing subrepository sub1<br>
+  committing subrepository sub1/sub2<br>
+<br>
+  $ hg --config extensions.largefiles= archive -S ../archive_lf<br>
+  $ find ../archive_lf | sort<br>
+  ../archive_lf<br>
+  ../archive_lf/.hg_archival.txt<br>
+  ../archive_lf/.hgsub<br>
+  ../archive_lf/.hgsubstate<br>
+  ../archive_lf/large.bin<br>
+  ../archive_lf/main<br>
+  ../archive_lf/sub1<br>
+  ../archive_lf/sub1/.hgsub<br>
+  ../archive_lf/sub1/.hgsubstate<br>
+  ../archive_lf/sub1/sub1<br>
+  ../archive_lf/sub2<br>
+  ../archive_lf/sub2/large.bin<br>
+  ../archive_lf/sub2/sub2<br>
+<br>
+  $ cd ..<br></blockquote><div><br>This looks good to me.<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>