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

dvc: use DirInfo instead of dicts/lists #4851

Merged
merged 1 commit into from
Nov 7, 2020
Merged

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Nov 6, 2020

Currently, we are converting dir_info to/from lists all the time.
The reason is that dir_info is stored as list of dicts in *.dir files,
but that makes it hard to work with. In addition to that, we will likely
be changing .dir file format in the near future #829, so we need to
abstract away dir_info into something that we won't care how it will be
stored on disk.

Related #3256
Related #4847

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

dvc/cache/base.py Show resolved Hide resolved
@efiop efiop marked this pull request as draft November 6, 2020 00:34
@efiop efiop force-pushed the fix-3256 branch 5 times, most recently from d9256d9 to 2ea9fa2 Compare November 6, 2020 23:28
@efiop efiop added the refactoring Factoring and re-factoring label Nov 6, 2020
Currently we are converting dir_info to/from lists all the time.
The reason is that dir_info is stored as list of dicts in *.dir files,
but that makes it hard to work with. In addition to that, we will likely
be changing .dir file format in the near future iterative#829, so we need to
abstract away dir_info into something that we won't care how it will be
stored on disk.

Related iterative#3256
Related iterative#4847
@efiop efiop changed the title [WIP] dvc: use DirInfo instead of dicts/lists dvc: use DirInfo instead of dicts/lists Nov 7, 2020
@efiop efiop marked this pull request as ready for review November 7, 2020 00:35
@efiop efiop merged commit 4531aa3 into iterative:master Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Factoring and re-factoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant