Kiln » largefiles » Unity
Clone URL:  

uploadlfiles: pre-filter the file list for files the store already has

Changeset b5749d971187

Parent 3c0c2d0eaa7f

by Profile picture of User 521Andrew Pritchard <andrewp@fogcreek.com>

Changes to one file · Browse files at b5749d971187 Showing diff from parent 3c0c2d0eaa7f Diff from another changeset...

Change 1 of 1 Show Entire File lfcommands.py Stacked
 
351
352
353
 
354
355
356
357
358
359
360
361
 
351
352
353
354
355
356
 
 
 
357
358
359
@@ -351,11 +351,9 @@
  store = basestore._openstore(rsrc, rdst, put=True)     at = 0 + files = filter(lambda h: not store.exists(h), files)   for hash in files:   ui.progress(_('uploading largefiles'), at, unit='lfile', total=len(files)) - if store.exists(hash): - at += 1 - continue   source = lfutil.findfile(rsrc, hash)   if not source:   raise util.Abort(_('Missing lfile %s needs to be uploaded') % hash)