hgext/largefiles/lfcommands.py
changeset 34083 08346a8fa65f
parent 32375 04baab18d60a
child 34756 3f3c6d12095d
equal deleted inserted replaced
34082:ba6e14f9a2d8 34083:08346a8fa65f
   420         return ret
   420         return ret
   421 
   421 
   422     return ([], [])
   422     return ([], [])
   423 
   423 
   424 def downloadlfiles(ui, repo, rev=None):
   424 def downloadlfiles(ui, repo, rev=None):
   425     matchfn = scmutil.match(repo[None],
   425     match = scmutil.match(repo[None], [repo.wjoin(lfutil.shortname)], {})
   426                             [repo.wjoin(lfutil.shortname)], {})
       
   427     def prepare(ctx, fns):
   426     def prepare(ctx, fns):
   428         pass
   427         pass
   429     totalsuccess = 0
   428     totalsuccess = 0
   430     totalmissing = 0
   429     totalmissing = 0
   431     if rev != []: # walkchangerevs on empty list would return all revs
   430     if rev != []: # walkchangerevs on empty list would return all revs
   432         for ctx in cmdutil.walkchangerevs(repo, matchfn, {'rev' : rev},
   431         for ctx in cmdutil.walkchangerevs(repo, match, {'rev' : rev},
   433                                           prepare):
   432                                           prepare):
   434             success, missing = cachelfiles(ui, repo, ctx.node())
   433             success, missing = cachelfiles(ui, repo, ctx.node())
   435             totalsuccess += len(success)
   434             totalsuccess += len(success)
   436             totalmissing += len(missing)
   435             totalmissing += len(missing)
   437     ui.status(_("%d additional largefiles cached\n") % totalsuccess)
   436     ui.status(_("%d additional largefiles cached\n") % totalsuccess)