Skip to content

Conversation

@skshetry
Copy link
Collaborator

Note that this only works when second revision argument is missing, as otherwise we don't really check for missing cache entries.

Closes #7661.

Note that this only works when second revision argument is missing,
as otherwise we don't really check for missing cache entries.
@skshetry skshetry self-assigned this Aug 15, 2025
@skshetry skshetry added A: status Related to the dvc diff/list/status A: data-management Related to dvc add/checkout/commit/move/remove labels Aug 15, 2025
@skshetry skshetry added this to DVC Aug 15, 2025
@github-project-automation github-project-automation bot moved this to Backlog in DVC Aug 15, 2025
@skshetry skshetry moved this from Backlog to Review In Progress in DVC Aug 15, 2025
Comment on lines +48 to +51
# we need to get unknown and unchanged entries to tell whether
# the object is missing from the cache or not.
with_unknown=with_missing,
with_unchanged=with_missing,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only check for missing cache items if the second argument is missing in dvc diff. So, this fix will only work in that case.

@skshetry skshetry enabled auto-merge (squash) August 15, 2025 17:11
@skshetry skshetry merged commit 6e22363 into main Aug 15, 2025
40 checks passed
@skshetry skshetry deleted the fix-7661 branch August 15, 2025 17:17
@github-project-automation github-project-automation bot moved this from Review In Progress to Done in DVC Aug 15, 2025
skshetry added a commit that referenced this pull request Aug 16, 2025
The directory entry might show up in "Not in cache" when the second rev is a
workspace revision.

But files inside missing cache entries won't be shown in any of the state,
unless we know the oid of the entries from the index on both side of the
`diff`.

On top of #10844. Closes #7661.
skshetry added a commit that referenced this pull request Aug 16, 2025
The directory entry might show up in "Not in cache" when the second rev is a
workspace revision.

But files inside missing cache entries won't be shown in any of the state,
unless we know the oid of the entries from the index on both side of the
`diff`.

On top of #10844. Closes #7661.
skshetry added a commit that referenced this pull request Aug 16, 2025
The directory entry might show up in "Not in cache" when the second rev is a
workspace revision.

But files inside missing cache entries won't be shown in any of the state,
unless we know the oid of the entries from the index on both side of the
`diff`.

On top of #10844. Closes #7661.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: data-management Related to dvc add/checkout/commit/move/remove A: status Related to the dvc diff/list/status

Projects

None yet

Development

Successfully merging this pull request may close these issues.

diff gets confused when the object is not in cache

1 participant