-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Labels
bugDid we break something?Did we break something?p1-importantImportant, aka current backlog of things to doImportant, aka current backlog of things to doresearchuiuser interface / interactionuser interface / interaction
Description
During a manual update of a file, I've faced the following message:
WARNING: data 'foo' exists. Removing before checkout.
It puzzled me, I thought it would overwrite my file, since checkout restores the file based on current DVC file.
I don't know why the file was replaced by the same file. It took a long time (huge file on a HDD).
@efiop provided me a script that reproduces the message:
#!/bin/bash
set -e
set -x
rm -rf myrepo
mkdir myrepo
cd myrepo
git init
dvc init
echo foo > foo
dvc add foo
echo bar > bar
dvc add bar
echo bar > foo
dvc add foo
cat foo
dvc status
I think a better message and avoiding re-copying the file would be great improvements.
efiop
Metadata
Metadata
Assignees
Labels
bugDid we break something?Did we break something?p1-importantImportant, aka current backlog of things to doImportant, aka current backlog of things to doresearchuiuser interface / interactionuser interface / interaction