Show More
@@ -418,6 +418,7 b' class hgsubrepo(abstractsubrepo):' | |||||
418 | % (inst, subrelpath(self))) |
|
418 | % (inst, subrelpath(self))) | |
419 |
|
419 | |||
420 | def archive(self, ui, archiver, prefix): |
|
420 | def archive(self, ui, archiver, prefix): | |
|
421 | self._get(self._state + ('hg',)) | |||
421 | abstractsubrepo.archive(self, ui, archiver, prefix) |
|
422 | abstractsubrepo.archive(self, ui, archiver, prefix) | |
422 |
|
423 | |||
423 | rev = self._state[1] |
|
424 | rev = self._state[1] |
@@ -304,6 +304,47 b' Test archiving to zip file (unzip output' | |||||
304 | archiving (foo/bar) [================================>] 1/1 |
|
304 | archiving (foo/bar) [================================>] 1/1 | |
305 | \r (esc) |
|
305 | \r (esc) | |
306 |
|
306 | |||
|
307 | Test archiving a revision that references a subrepo that is not yet | |||
|
308 | cloned: | |||
|
309 | ||||
|
310 | $ hg clone -U . ../empty | |||
|
311 | $ cd ../empty | |||
|
312 | $ hg archive --subrepos -r tip ../archive.tar.gz 2>&1 | $TESTDIR/filtercr.py | |||
|
313 | ||||
|
314 | archiving [ ] 0/3 | |||
|
315 | archiving [ ] 0/3 | |||
|
316 | archiving [=============> ] 1/3 | |||
|
317 | archiving [=============> ] 1/3 | |||
|
318 | archiving [===========================> ] 2/3 | |||
|
319 | archiving [===========================> ] 2/3 | |||
|
320 | archiving [==========================================>] 3/3 | |||
|
321 | archiving [==========================================>] 3/3 | |||
|
322 | ||||
|
323 | archiving (foo) [ ] 0/3 | |||
|
324 | archiving (foo) [ ] 0/3 | |||
|
325 | archiving (foo) [===========> ] 1/3 | |||
|
326 | archiving (foo) [===========> ] 1/3 | |||
|
327 | archiving (foo) [=======================> ] 2/3 | |||
|
328 | archiving (foo) [=======================> ] 2/3 | |||
|
329 | archiving (foo) [====================================>] 3/3 | |||
|
330 | archiving (foo) [====================================>] 3/3 | |||
|
331 | ||||
|
332 | archiving (foo/bar) [ ] 0/1 | |||
|
333 | archiving (foo/bar) [ ] 0/1 | |||
|
334 | archiving (foo/bar) [================================>] 1/1 | |||
|
335 | archiving (foo/bar) [================================>] 1/1 | |||
|
336 | ||||
|
337 | cloning subrepo foo from $TESTTMP/repo/foo | |||
|
338 | cloning subrepo foo/bar from $TESTTMP/repo/foo/bar | |||
|
339 | ||||
|
340 | The newly cloned subrepos contain no working copy: | |||
|
341 | ||||
|
342 | $ hg -R foo summary | |||
|
343 | parent: -1:000000000000 (no revision checked out) | |||
|
344 | branch: default | |||
|
345 | commit: (clean) | |||
|
346 | update: 4 new changesets (update) | |||
|
347 | ||||
307 | Disable progress extension and cleanup: |
|
348 | Disable progress extension and cleanup: | |
308 |
|
349 | |||
309 | $ mv $HGRCPATH.no-progress $HGRCPATH |
|
350 | $ mv $HGRCPATH.no-progress $HGRCPATH |
General Comments 0
You need to be logged in to leave comments.
Login now