-
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
update: --recursive flag #3760
update: --recursive flag #3760
Conversation
dvc/repo/update.py
Outdated
stages = self.collect(targets, recursive=recursive) | ||
else: | ||
stages = set() | ||
for target in targets: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also
if isinstance(targets, str):
targets = [targets]
just as a convenience (we have that in dvc add
too), since it is guaranteed someone will try to misuse it 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way are the any other commands which should contain isinstance(targets, str)
check? repo.used_cache
, repo.status
, repo._checkout
seem good candidates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nik123 Probably not used_cache
but the rest could use it, sure. But let's not bother with it in this PR, it is out of scope 🙂
Thanks @nik123 ! 🙏 |
Fixes #3511
See iterative/dvc.org#1259