mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
largefiles: download missing subrepo revs when archiving
This is something plain hgsubrepos already do. Previously, an abort message complained about an unknown revision.
This commit is contained in:
parent
852865980a
commit
ca1372542e
@ -841,6 +841,7 @@ def overridearchive(orig, repo, dest, node, kind, decode=True, matchfn=None,
|
||||
archiver.done()
|
||||
|
||||
def hgsubrepoarchive(orig, repo, ui, archiver, prefix, match=None):
|
||||
repo._get(repo._state + ('hg',))
|
||||
rev = repo._state[1]
|
||||
ctx = repo._repo[rev]
|
||||
|
||||
|
@ -1582,6 +1582,14 @@ Lock in subrepo, otherwise the change isn't archived
|
||||
lf_subrepo_archive/subrepo/large.txt
|
||||
lf_subrepo_archive/subrepo/normal.txt
|
||||
|
||||
Test archiving a revision that references a subrepo that is not yet
|
||||
cloned (see test-subrepo-recursion.t):
|
||||
|
||||
$ hg clone -U . ../empty
|
||||
$ cd ../empty
|
||||
$ hg archive --subrepos -r tip ../archive.tar.gz 2>&1 | "$TESTDIR/filtercr.py"
|
||||
cloning subrepo subrepo from $TESTTMP/statusmatch/subrepo
|
||||
|
||||
$ cd ..
|
||||
|
||||
Test that addremove picks up largefiles prior to the initial commit (issue3541)
|
||||
|
Loading…
Reference in New Issue
Block a user