diff -r dd9e28612468 -r 39ddb1121c4e hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py Sat Sep 12 11:18:12 2020 -0700 +++ b/hgext/largefiles/lfcommands.py Fri Sep 11 10:47:17 2020 +0900 @@ -485,7 +485,7 @@ return ([], []) -def downloadlfiles(ui, repo, rev=None): +def downloadlfiles(ui, repo): match = scmutil.match(repo[None], [repo.wjoin(lfutil.shortname)], {}) def prepare(ctx, fns): @@ -493,11 +493,10 @@ totalsuccess = 0 totalmissing = 0 - if rev != []: # walkchangerevs on empty list would return all revs - for ctx in cmdutil.walkchangerevs(repo, match, {b'rev': rev}, prepare): - success, missing = cachelfiles(ui, repo, ctx.node()) - totalsuccess += len(success) - totalmissing += len(missing) + for ctx in cmdutil.walkchangerevs(repo, match, {b'rev': None}, prepare): + success, missing = cachelfiles(ui, repo, ctx.node()) + totalsuccess += len(success) + totalmissing += len(missing) ui.status(_(b"%d additional largefiles cached\n") % totalsuccess) if totalmissing > 0: ui.status(_(b"%d largefiles failed to download\n") % totalmissing)