##// END OF EJS Templates
largefiles: remove unused 'rev' parameter from downloadlfiles()...
Yuya Nishihara -
r46025:39ddb112 default
parent child Browse files
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, rev=None):
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,8 +493,7 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):
498 success, missing = cachelfiles(ui, repo, ctx.node())
497 success, missing = cachelfiles(ui, repo, ctx.node())
499 totalsuccess += len(success)
498 totalsuccess += len(success)
500 totalmissing += len(missing)
499 totalmissing += len(missing)
@@ -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, None)
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