hgext/largefiles/lfcommands.py
changeset 15253 67d010779907
parent 15252 6e809bb4f969
child 15254 dd03d3a9f888
equal deleted inserted replaced
15252:6e809bb4f969 15253:67d010779907
   343     for hash in files:
   343     for hash in files:
   344         ui.progress(_('uploading largefiles'), at, unit='largefile',
   344         ui.progress(_('uploading largefiles'), at, unit='largefile',
   345                     total=len(files))
   345                     total=len(files))
   346         source = lfutil.findfile(rsrc, hash)
   346         source = lfutil.findfile(rsrc, hash)
   347         if not source:
   347         if not source:
   348             raise util.Abort(_('Missing largefile %s needs to be uploaded')
   348             raise util.Abort(_('largefile %s missing from store'
   349                              % hash)
   349                                ' (needs to be uploaded)') % hash)
   350         # XXX check for errors here
   350         # XXX check for errors here
   351         store.put(source, hash)
   351         store.put(source, hash)
   352         at += 1
   352         at += 1
   353     ui.progress(_('uploading largefiles'), None)
   353     ui.progress(_('uploading largefiles'), None)
   354 
   354