##// END OF EJS Templates
largefiles: restore caching of largefiles with 'clone -U --all-largefiles'...
Matt Harbison -
r17599:56136786 stable
parent child Browse files
Show More
@@ -736,7 +736,19 b' def overrideclone(orig, ui, source, dest'
736 return True
736 return True
737 if opts.get('all_largefiles'):
737 if opts.get('all_largefiles'):
738 sourcerepo, destrepo = result
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 return missing != 0
752 return missing != 0
741 return result is None
753 return result is None
742
754
@@ -700,7 +700,7 b' Test cloning with --all-largefiles flag'
700
700
701 $ rm "${USERCACHE}"/*
701 $ rm "${USERCACHE}"/*
702 $ hg clone --all-largefiles -U a a-clone-u
702 $ hg clone --all-largefiles -U a a-clone-u
703 0 additional largefiles cached
703 11 additional largefiles cached
704 $ hg -R a-clone-u sum
704 $ hg -R a-clone-u sum
705 parent: -1:000000000000 (no revision checked out)
705 parent: -1:000000000000 (no revision checked out)
706 branch: default
706 branch: default
General Comments 0
You need to be logged in to leave comments. Login now