From 608269dc8814f5fdaf41d6c6bb0afa1fa07e6393 Mon Sep 17 00:00:00 2001 From: Peter Rowlands Date: Fri, 13 Jan 2023 16:23:46 +0900 Subject: [PATCH] status: remove deprecated/unused dvc-data.hashfile.status flag --- dvc/data_cloud.py | 4 ---- dvc/repo/status.py | 4 +--- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/dvc/data_cloud.py b/dvc/data_cloud.py index 2c6d4313a..1e6b8743c 100644 --- a/dvc/data_cloud.py +++ b/dvc/data_cloud.py @@ -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, ) diff --git a/dvc/repo/status.py b/dvc/repo/status.py index e2fbbf693..f2c2f83f7 100644 --- a/dvc/repo/status.py +++ b/dvc/repo/status.py @@ -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_