-
Notifications
You must be signed in to change notification settings - Fork 1.2k
dvc: introduce merge-driver #4298
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
Conversation
81f360e
to
aabf1d7
Compare
9dbceb7
to
346f169
Compare
def merge(self, ancestor, other): | ||
raise NotImplementedError | ||
|
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.
These stubs are for the future, as merging dvcfiles is potentially a handy thing to have.
dvc/cache/base.py
Outdated
# Sorting the list by path to ensure reproducibility | ||
return sorted(result, key=itemgetter(self.tree.PARAM_RELPATH)) |
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.
We have a similar thing in _collect_dir in BaseTree's, but these will be unified as a part of #4144 , once dir hash computation is detached from cache.
@efiop
Where I have 2 branches: and then, on master I merge |
@pared Sorry for the delay.
Not really, because there is nothing in master, so there is no conflict.
And here you get a conflict, as expected. |
@efiop sorry, I meant that I would expect error after the comment.
If we were doing same thing (tracking EDIT:
|
@pared Ah, got it. Yes, that's a bug, thank you! π Finally getting to creating additional tests for it, will be sure to add one for that as well. |
Related to iterative#4162
Related to #4162
β I have followed the Contributing to DVC checklist.
π If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. π
TODO: