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

config: use repo.tree #4190

Merged
merged 1 commit into from
Jul 12, 2020
Merged

config: use repo.tree #4190

merged 1 commit into from
Jul 12, 2020

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Jul 10, 2020

Fixes #4188

  • ❗ 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.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

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

@efiop efiop changed the title config: use repo.tree [WIP] config: use repo.tree Jul 10, 2020
dvc/scm/tree.py Outdated
Comment on lines 40 to 42
def makedirs(self, path, mode=0o777, exist_ok=True):
pass

Copy link
Contributor Author

@efiop efiop Jul 10, 2020

Choose a reason for hiding this comment

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

Really need to consolidate all this mess #4050 .

Also too dangerous to keep these base methods defunct. Need to use abc or at least raise notimplementederror...

@efiop efiop force-pushed the fix-4188 branch 5 times, most recently from 00082d3 to 1f9e684 Compare July 11, 2020 00:29
@@ -246,6 +248,9 @@ def __init__(
else:
self.dvc_dir = os.path.abspath(os.path.realpath(dvc_dir))

self.wtree = WorkingTree(self.dvc_dir)
self.tree = tree.tree if tree else self.wtree
Copy link
Contributor Author

@efiop efiop Jul 11, 2020

Choose a reason for hiding this comment

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

Having to tree.tree because of Repo.tree's setter πŸ™ Looks like that will need to be revisited as well in #4050 .

@efiop efiop changed the title [WIP] config: use repo.tree config: use repo.tree Jul 12, 2020
@efiop efiop merged commit b8a4293 into iterative:master Jul 12, 2020
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.

dvc get --rev doesn't work if master is not a dvc repo
1 participant