Show More
@@ -485,7 +485,7 b' def cachelfiles(ui, repo, node, filelist' | |||||
485 | return ([], []) |
|
485 | return ([], []) | |
486 |
|
486 | |||
487 |
|
487 | |||
488 |
def downloadlfiles(ui, repo |
|
488 | def downloadlfiles(ui, repo): | |
489 | match = scmutil.match(repo[None], [repo.wjoin(lfutil.shortname)], {}) |
|
489 | match = scmutil.match(repo[None], [repo.wjoin(lfutil.shortname)], {}) | |
490 |
|
490 | |||
491 | def prepare(ctx, fns): |
|
491 | def prepare(ctx, fns): | |
@@ -493,11 +493,10 b' def downloadlfiles(ui, repo, rev=None):' | |||||
493 |
|
493 | |||
494 | totalsuccess = 0 |
|
494 | totalsuccess = 0 | |
495 | totalmissing = 0 |
|
495 | totalmissing = 0 | |
496 | if rev != []: # walkchangerevs on empty list would return all revs |
|
496 | for ctx in cmdutil.walkchangerevs(repo, match, {b'rev': None}, prepare): | |
497 | for ctx in cmdutil.walkchangerevs(repo, match, {b'rev': rev}, prepare): |
|
497 | success, missing = cachelfiles(ui, repo, ctx.node()) | |
498 | success, missing = cachelfiles(ui, repo, ctx.node()) |
|
498 | totalsuccess += len(success) | |
499 |
|
|
499 | totalmissing += len(missing) | |
500 | totalmissing += len(missing) |
|
|||
501 | ui.status(_(b"%d additional largefiles cached\n") % totalsuccess) |
|
500 | ui.status(_(b"%d additional largefiles cached\n") % totalsuccess) | |
502 | if totalmissing > 0: |
|
501 | if totalmissing > 0: | |
503 | ui.status(_(b"%d largefiles failed to download\n") % totalmissing) |
|
502 | ui.status(_(b"%d largefiles failed to download\n") % totalmissing) |
@@ -1094,7 +1094,7 b' def hgclone(orig, ui, opts, *args, **kwa' | |||||
1094 | # truncated at that point. The user may expect a download count with |
|
1094 | # truncated at that point. The user may expect a download count with | |
1095 | # this option, so attempt whether or not this is a largefile repo. |
|
1095 | # this option, so attempt whether or not this is a largefile repo. | |
1096 | if opts.get(b'all_largefiles'): |
|
1096 | if opts.get(b'all_largefiles'): | |
1097 |
success, missing = lfcommands.downloadlfiles(ui, repo |
|
1097 | success, missing = lfcommands.downloadlfiles(ui, repo) | |
1098 |
|
1098 | |||
1099 | if missing != 0: |
|
1099 | if missing != 0: | |
1100 | return None |
|
1100 | return None |
General Comments 0
You need to be logged in to leave comments.
Login now