hgext/largefiles/lfcommands.py
changeset 17127 9e1616307c4c
parent 16727 3e24ce3de5f1
child 17155 88ff28bcd980
equal deleted inserted replaced
17126:8fa8717b47b6 17127:9e1616307c4c
   338         return
   338         return
   339 
   339 
   340     store = basestore._openstore(rsrc, rdst, put=True)
   340     store = basestore._openstore(rsrc, rdst, put=True)
   341 
   341 
   342     at = 0
   342     at = 0
   343     files = filter(lambda h: not store.exists(h), files)
   343     ui.debug("sending statlfile command for %d largefiles\n" % len(files))
       
   344     retval = store.exists(files)
       
   345     files = filter(lambda h: not retval[h], files)
       
   346     ui.debug("%d largefiles need to be uploaded\n" % len(files))
       
   347 
   344     for hash in files:
   348     for hash in files:
   345         ui.progress(_('uploading largefiles'), at, unit='largefile',
   349         ui.progress(_('uploading largefiles'), at, unit='largefile',
   346                     total=len(files))
   350                     total=len(files))
   347         source = lfutil.findfile(rsrc, hash)
   351         source = lfutil.findfile(rsrc, hash)
   348         if not source:
   352         if not source: