diff: output after partial pull wrongfully includes top dir #9507
Labels
bug
Did we break something?
diff/show
Related to the diff/show feature
p1-important
Important, aka current backlog of things to do
Bug Report
Description
After pulling a subset of a dvc tracked dataset, the results of
dvc diff <subpath in dataset>
show wrong (or confusing) results.Specifically, if only a subdir of a dataset is pulled and modified, the top level item appears as "Removed", which is wrong.
Reproduce
Using a fresh repo with the
dataset.dvc
from dvc-bench/data/mnist at its root.Note, this uses the newly developed "virtual dir":
☝️ it shows a the top level dir as "Deleted", and also the containing dir as added (not just the file), looks like a bug
Another questionable behavior is running when running
dvc diff --targets dataset/
- there it would dump all the files not present in workspace (dataset/test/*
,dataset/traing/{!4}/*
) - Here I intentionally didn't pull them, but they are not missing from my localdataset.dvc
Expected
Questionable, should we also expect to see
dataset/
as "modified" since it's the dataset (data-item?) level, anddataset.dvc
contents are modified anddataset.dvc
representsdatasets/
? I would argue it's not expected but, not sureEnvironment information
Additional Information:
Related:
The text was updated successfully, but these errors were encountered: