@@ -323,7 +323,6 @@ def _get_entries_not_in_remote(
323
323
filter_keys : Optional [Iterable ["DataIndexKey" ]] = None ,
324
324
granular : bool = False ,
325
325
remote_refresh : bool = False ,
326
- batch_size : Optional [int ] = None ,
327
326
) -> list [str ]:
328
327
"""Get entries that are not in remote storage."""
329
328
from dvc .repo .worktree import worktree_view
@@ -337,10 +336,6 @@ def _get_entries_not_in_remote(
337
336
338
337
missing_entries = []
339
338
340
- to_check : dict [FileSystem , dict [str , list [DataIndexEntry ]]] = defaultdict (
341
- lambda : defaultdict (list )
342
- )
343
-
344
339
storage_map = view .storage_map
345
340
with TqdmCallback (size = 0 , desc = "Checking remote" , unit = "entry" ) as cb :
346
341
for key , entry in view .iteritems (shallow = not granular ):
@@ -358,28 +353,12 @@ def _get_entries_not_in_remote(
358
353
continue
359
354
360
355
k = (* key , "" ) if entry .meta and entry .meta .isdir else key
361
- if remote_refresh :
362
- # on remote_refresh, collect all entries to check
363
- # then check them in batches below
364
- try :
365
- remote_fs , remote_path = storage_map .get_remote (entry )
366
- to_check [remote_fs ][remote_path ].append (entry )
367
- cb .size += 1
368
- cb .relative_update (0 ) # try to update the progress bar
369
- except StorageKeyError :
370
- pass
371
- else :
372
- try :
373
- if not storage_map .remote_exists (entry , refresh = remote_refresh ):
374
- missing_entries .append (os .path .sep .join (k ))
375
- cb .relative_update () # no need to update the size
376
- except StorageKeyError :
377
- pass
378
- missing_entries .extend (
379
- _get_missing_paths (
380
- to_check , batch_size = batch_size , callback = StorageCallback (cb )
381
- )
382
- )
356
+ try :
357
+ if not storage_map .remote_exists (entry , refresh = remote_refresh ):
358
+ missing_entries .append (os .path .sep .join (k ))
359
+ cb .relative_update () # no need to update the size
360
+ except StorageKeyError :
361
+ pass
383
362
return missing_entries
384
363
385
364
@@ -428,7 +407,6 @@ def status(
428
407
filter_keys = filter_keys ,
429
408
granular = granular ,
430
409
remote_refresh = remote_refresh ,
431
- batch_size = batch_size ,
432
410
)
433
411
434
412
try :
0 commit comments