mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
largefiles: fix the directory structure when archiving a subrepo in a subrepo
Previously, a repo consisting of main/sub/subsub archived sub and subsub as siblings under main.
This commit is contained in:
parent
bf6dae387d
commit
c16332f051
@ -850,7 +850,7 @@ def hgsubrepoarchive(orig, repo, ui, archiver, prefix):
|
||||
|
||||
for subpath in ctx.substate:
|
||||
sub = ctx.sub(subpath)
|
||||
sub.archive(ui, archiver, prefix)
|
||||
sub.archive(ui, archiver, os.path.join(prefix, repo._path) + '/')
|
||||
|
||||
# If a largefile is modified, the change is not reflected in its
|
||||
# standin until a commit. cmdutil.bailifchanged() raises an exception
|
||||
|
@ -125,8 +125,8 @@ Note that add --large through a subrepo currently adds the file as a normal file
|
||||
../archive_lf/sub1/.hgsub
|
||||
../archive_lf/sub1/.hgsubstate
|
||||
../archive_lf/sub1/sub1
|
||||
../archive_lf/sub2
|
||||
../archive_lf/sub2/large.bin
|
||||
../archive_lf/sub2/sub2
|
||||
../archive_lf/sub1/sub2
|
||||
../archive_lf/sub1/sub2/large.bin
|
||||
../archive_lf/sub1/sub2/sub2
|
||||
|
||||
$ cd ..
|
||||
|
Loading…
Reference in New Issue
Block a user