hgext/largefiles/lfcommands.py
changeset 28463 19b4a2087dfc
parent 27820 d2e9cc9edc08
child 28464 6e34690230c0
equal deleted inserted replaced
28462:dbba18ba26d4 28463:19b4a2087dfc
   344     retval = store.exists(files)
   344     retval = store.exists(files)
   345     files = filter(lambda h: not retval[h], files)
   345     files = filter(lambda h: not retval[h], files)
   346     ui.debug("%d largefiles need to be uploaded\n" % len(files))
   346     ui.debug("%d largefiles need to be uploaded\n" % len(files))
   347 
   347 
   348     for hash in files:
   348     for hash in files:
   349         ui.progress(_('uploading largefiles'), at, unit='largefile',
   349         ui.progress(_('uploading largefiles'), at, unit=_('files'),
   350                     total=len(files))
   350                     total=len(files))
   351         source = lfutil.findfile(rsrc, hash)
   351         source = lfutil.findfile(rsrc, hash)
   352         if not source:
   352         if not source:
   353             raise error.Abort(_('largefile %s missing from store'
   353             raise error.Abort(_('largefile %s missing from store'
   354                                ' (needs to be uploaded)') % hash)
   354                                ' (needs to be uploaded)') % hash)