From c94d28594d167c32dbddbe28bd89d9176c04a291 Mon Sep 17 00:00:00 2001 From: Peter Rowlands Date: Tue, 10 Jan 2023 15:19:36 +0900 Subject: [PATCH] worktree push: remove existing version id optimization for file outs --- dvc/repo/worktree.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dvc/repo/worktree.py b/dvc/repo/worktree.py index c7461fcb4..16ed24f0e 100644 --- a/dvc/repo/worktree.py +++ b/dvc/repo/worktree.py @@ -32,7 +32,6 @@ def worktree_view( index: "Index", targets: Optional["TargetType"] = None, push: bool = False, - latest_only: bool = True, **kwargs, ) -> "IndexView": """Return view of data that can be stored in worktree remotes. @@ -56,10 +55,6 @@ def worktree_view( or (push and not out.can_push) ): return False - # If we are not enforcing push to latest version and have a version - # for this out, we assume it still exists and can skip pushing it - if push and not latest_only and out.meta.version_id is not None: - return False return True return index.targets_view( @@ -108,7 +103,6 @@ def push_worktree( repo.index, push=True, targets=targets, - latest_only=remote.worktree, **kwargs, ) new_index = view.data["repo"]