Show More
@@ -736,7 +736,19 def overrideclone(orig, ui, source, dest | |||
|
736 | 736 | return True |
|
737 | 737 | if opts.get('all_largefiles'): |
|
738 | 738 | sourcerepo, destrepo = result |
|
739 | success, missing = lfcommands.downloadlfiles(ui, destrepo.local(), None) | |
|
739 | repo = destrepo.local() | |
|
740 | ||
|
741 | # The .hglf directory must exist for the standin matcher to match | |
|
742 | # anything (which listlfiles uses for each rev), and .hg/largefiles is | |
|
743 | # assumed to exist by the code that caches the downloaded file. These | |
|
744 | # directories exist if clone updated to any rev. | |
|
745 | if opts.get('noupdate'): | |
|
746 | util.makedirs(repo.pathto(lfutil.shortname)) | |
|
747 | util.makedirs(repo.join(lfutil.longname)) | |
|
748 | ||
|
749 | # Caching is implicitly limited to 'rev' option, since the dest repo was | |
|
750 | # truncated at that point. | |
|
751 | success, missing = lfcommands.downloadlfiles(ui, repo, None) | |
|
740 | 752 | return missing != 0 |
|
741 | 753 | return result is None |
|
742 | 754 |
@@ -700,7 +700,7 Test cloning with --all-largefiles flag | |||
|
700 | 700 | |
|
701 | 701 | $ rm "${USERCACHE}"/* |
|
702 | 702 | $ hg clone --all-largefiles -U a a-clone-u |
|
703 |
|
|
|
703 | 11 additional largefiles cached | |
|
704 | 704 | $ hg -R a-clone-u sum |
|
705 | 705 | parent: -1:000000000000 (no revision checked out) |
|
706 | 706 | branch: default |
General Comments 0
You need to be logged in to leave comments.
Login now