dvc: refactor objects (#5607)

* dvc: get rid of DirInfo

DirInfo was created before we had proper objects, as a way to have a
structure that represents a staged directory. Right now we have a
dedicated Tree object that is specifically meant for that.

As a result, HashInfo no longer needs to have dir_info and we no longer
need `get_hash/get_dir_hash` helpers.

* objects: move Tree into tree.py
This commit is contained in:
Ruslan Kuprieiev
2021-03-12 01:10:34 +02:00
committed by GitHub
parent b691b15007
commit 4af3b3d20d
25 changed files with 476 additions and 475 deletions
+1 -1
View File
@@ -287,7 +287,7 @@ def test_verify_hashes(
remove("dir")
remove(dvc.odb.local.cache_dir)
hash_spy = mocker.spy(dvc_module.objects.stage, "get_file_hash")
hash_spy = mocker.spy(dvc_module.objects.stage, "_get_file_hash")
dvc.pull()
assert hash_spy.call_count == 0