-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dvc: Repo(..., rev=smth) is counter-intuitive or broken #2201
Comments
P.S. the examples above are not exhaustive, e.g. |
@Suor Are you sure? pull/push will use |
@efiop Still the point stands - do we really need repos with non-default |
We do for erepos, to be able to collect and pull stuff. But there might be a nicer way to do that. |
I would say that we may break someone workflow if make |
Yep, need to give that one a thought. On one hand, it seems like it would be a correct approach none the less, but on the other maybe the current behavior is actually what we want (at least with some explicit option). The least we could do is to check if other branches have different remotes to the one in the current workspace and prompt or raise a warning/error. For the record: Agreed in a private discussion to remove rev from |
Fixes iterative#1774 Fixes iterative#2139 Fixes iterative#2201 Signed-off-by: Ruslan Kuprieiev <[email protected]>
For example
repo.add()
will browse using currently existing.dvcignore
files.repo.pull/push()
will work against master notrev
.Should we hide it? Or handle all of that? Or implement everything not using non-default
rev
Repo objects?rev
assert rev is None
indvc.api
The text was updated successfully, but these errors were encountered: