From b76aad8d56e48bcd49c66a5d3b53b2d70ca3ea4e Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 27 Jan 2023 14:18:39 +0200 Subject: [PATCH] data: status: rename with_missing to not_in_cache --- dvc/repo/data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dvc/repo/data.py b/dvc/repo/data.py index 7ddd5f152..bb32265ff 100644 --- a/dvc/repo/data.py +++ b/dvc/repo/data.py @@ -58,7 +58,7 @@ def _diff( new: "DataIndex", *, granular: bool = False, - with_missing: bool = False, + not_in_cache: bool = False, ) -> Dict[str, List[str]]: from dvc_data.index.diff import UNCHANGED, UNKNOWN, diff @@ -94,7 +94,7 @@ def _diff( continue if ( - with_missing + not_in_cache and change.old and change.old.hash_info and not old.storage_map.cache_exists(change.old) @@ -155,7 +155,7 @@ def _diff_index_to_wtree(repo: "Repo", **kwargs: Any) -> Dict[str, List[str]]: return _diff( repo.index.data["repo"], workspace, - with_missing=True, + not_in_cache=True, **kwargs, )