Show More
@@ -850,7 +850,7 b' def hgsubrepoarchive(orig, repo, ui, arc' | |||||
850 |
|
850 | |||
851 | for subpath in ctx.substate: |
|
851 | for subpath in ctx.substate: | |
852 | sub = ctx.sub(subpath) |
|
852 | sub = ctx.sub(subpath) | |
853 |
sub.archive( |
|
853 | sub.archive(ui, archiver, prefix) | |
854 |
|
854 | |||
855 | # If a largefile is modified, the change is not reflected in its |
|
855 | # If a largefile is modified, the change is not reflected in its | |
856 | # standin until a commit. cmdutil.bailifchanged() raises an exception |
|
856 | # standin until a commit. cmdutil.bailifchanged() raises an exception |
@@ -98,3 +98,35 b' debugsub output for main and sub1' | |||||
98 | path sub2 |
|
98 | path sub2 | |
99 | source ../sub2 |
|
99 | source ../sub2 | |
100 | revision 53dd3430bcaf5ab4a7c48262bcad6d441f510487 |
|
100 | revision 53dd3430bcaf5ab4a7c48262bcad6d441f510487 | |
|
101 | ||||
|
102 | Check that deep archive works with largefiles (which overrides hgsubrepo impl) | |||
|
103 | This also tests the repo.ui regression in 43fb170a23bd, and that lf subrepo | |||
|
104 | subrepos are archived properly. | |||
|
105 | Note that add --large through a subrepo currently adds the file as a normal file | |||
|
106 | ||||
|
107 | $ cd cloned | |||
|
108 | $ echo "large" > sub1/sub2/large.bin | |||
|
109 | $ hg --config extensions.largefiles= add --large -R sub1/sub2 sub1/sub2/large.bin | |||
|
110 | $ echo "large" > large.bin | |||
|
111 | $ hg --config extensions.largefiles= add --large large.bin | |||
|
112 | $ hg --config extensions.largefiles= ci -S -m "add large files" | |||
|
113 | committing subrepository sub1 | |||
|
114 | committing subrepository sub1/sub2 | |||
|
115 | ||||
|
116 | $ hg --config extensions.largefiles= archive -S ../archive_lf | |||
|
117 | $ find ../archive_lf | sort | |||
|
118 | ../archive_lf | |||
|
119 | ../archive_lf/.hg_archival.txt | |||
|
120 | ../archive_lf/.hgsub | |||
|
121 | ../archive_lf/.hgsubstate | |||
|
122 | ../archive_lf/large.bin | |||
|
123 | ../archive_lf/main | |||
|
124 | ../archive_lf/sub1 | |||
|
125 | ../archive_lf/sub1/.hgsub | |||
|
126 | ../archive_lf/sub1/.hgsubstate | |||
|
127 | ../archive_lf/sub1/sub1 | |||
|
128 | ../archive_lf/sub2 | |||
|
129 | ../archive_lf/sub2/large.bin | |||
|
130 | ../archive_lf/sub2/sub2 | |||
|
131 | ||||
|
132 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now