hgext/largefiles/lfcommands.py
changeset 36311 b9da10f310f4
parent 35563 4aa6ed598323
child 37743 25136e03012e
equal deleted inserted replaced
36310:ea62c2df882d 36311:b9da10f310f4
   363     store = storefactory.openstore(rsrc, rdst, put=True)
   363     store = storefactory.openstore(rsrc, rdst, put=True)
   364 
   364 
   365     at = 0
   365     at = 0
   366     ui.debug("sending statlfile command for %d largefiles\n" % len(files))
   366     ui.debug("sending statlfile command for %d largefiles\n" % len(files))
   367     retval = store.exists(files)
   367     retval = store.exists(files)
   368     files = filter(lambda h: not retval[h], files)
   368     files = [h for h in files if not retval[h]]
   369     ui.debug("%d largefiles need to be uploaded\n" % len(files))
   369     ui.debug("%d largefiles need to be uploaded\n" % len(files))
   370 
   370 
   371     for hash in files:
   371     for hash in files:
   372         ui.progress(_('uploading largefiles'), at, unit=_('files'),
   372         ui.progress(_('uploading largefiles'), at, unit=_('files'),
   373                     total=len(files))
   373                     total=len(files))