Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exp apply: preserve untracked files #7910

Merged
merged 2 commits into from Jun 20, 2022

Conversation

pmrowla
Copy link
Contributor

@pmrowla pmrowla commented Jun 17, 2022

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

Untracked files are now preserved on exp apply

  • With --force (default), if a file currently untracked in the workspace exists in the experiment to apply, the experiment version will replace the workspace version. If the untracked file does not exist in the experiment, the workspace version is preserved after applying the experiment.
  • With --no-force, workspace state for untracked files is preserved (apply will fail due to conflicts if the file exists in the experiment)

Fixes #6930

@pmrowla pmrowla added A: experiments Related to dvc exp bugfix fixes bug labels Jun 17, 2022
@pmrowla pmrowla requested a review from a team as a code owner June 17, 2022 08:28
@pmrowla pmrowla self-assigned this Jun 17, 2022
@pmrowla pmrowla requested a review from pared June 17, 2022 08:28
@pmrowla pmrowla merged commit 31f67cd into iterative:main Jun 20, 2022
@pmrowla pmrowla deleted the 6930-apply-untracked branch June 20, 2022 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: experiments Related to dvc exp bugfix fixes bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

exp apply: safeguard against unclean workspaces
1 participant