status: remove deprecated/unused dvc-data.hashfile.status flag

This commit is contained in:
Peter Rowlands
2023-01-16 15:58:21 +09:00
committed by Peter Rowlands (변기호)
parent e48d0d1d9c
commit 608269dc88
2 changed files with 1 additions and 7 deletions
-4
View File
@@ -183,7 +183,6 @@ class DataCloud:
jobs: Optional[int] = None,
remote: Optional[str] = None,
odb: Optional["HashFileDB"] = None,
log_missing: bool = True,
):
"""Check status of data items in a cloud-agnostic way.
@@ -194,8 +193,6 @@ class DataCloud:
cache to. By default remote from core.remote config option
is used.
odb: optional ODB to check status from. Overrides remote.
log_missing: log warning messages if file doesn't exist
neither in cache, neither in cloud.
"""
from dvc_data.hashfile.status import compare_status
@@ -206,7 +203,6 @@ class DataCloud:
odb,
objs,
jobs=jobs,
log_missing=log_missing,
dest_index=get_index(odb),
cache_odb=self.repo.odb.local,
)
+1 -3
View File
@@ -97,9 +97,7 @@ def _cloud_status(
if odb is not None:
# ignore imported objects
continue
status_info = self.cloud.status(
obj_ids, jobs, remote=remote, log_missing=False
)
status_info = self.cloud.status(obj_ids, jobs, remote=remote)
for status_ in ("deleted", "new", "missing"):
for hash_info in getattr(status_info, status_, []):
ret[hash_info.obj_name] = status_