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

update: implement --to-remote flag #5343

Merged
merged 3 commits into from
Feb 3, 2021

Conversation

isidentical
Copy link
Contributor

@isidentical isidentical commented Jan 27, 2021

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

@isidentical isidentical changed the title [WIP] upload: implement --to-remote flag [WIP] update: implement --to-remote flag Jan 28, 2021
dvc/stage/imports.py Outdated Show resolved Hide resolved
Comment on lines +7 to +10
url = stage.deps[0].path_info.url
stage.outs[0].hash_info = stage.repo.cloud.transfer(
url, jobs=jobs, remote=remote, command="update"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, seems like this is something we are doing over and over in add/import and now update. Makes me think this should really be some kind of flag/option for stage.save() and out.save() that would make it transfer stuff. We've had this discussion before and it wasn't clear back then, but maybe it is a good time. Or at least we could consider it and do it in the follow up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also thought the same, and I think it would somehow make sense to have a function to do this in either stage or output.

@isidentical isidentical changed the title [WIP] update: implement --to-remote flag update: implement --to-remote flag Feb 2, 2021
@efiop efiop merged commit fc77618 into iterative:master Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants