mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
status: remove deprecated/unused dvc-data.hashfile.status flag
This commit is contained in:
committed by
Peter Rowlands (변기호)
parent
e48d0d1d9c
commit
608269dc88
@@ -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
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user