objects: extract size/nfiles to Meta (#6784)

* stage: capture metadata

* tree: capture metadata

* objects: extract size/nfiles from HashInfo/HashFile/Tree to Meta
This commit is contained in:
Ruslan Kuprieiev
2021-10-12 03:06:18 +03:00
committed by GitHub
parent 5cbaa8d98e
commit 32467ada32
37 changed files with 284 additions and 251 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ class TestCheckoutCorruptedCacheDir(TestDvc):
# NOTE: modifying cache file for one of the files inside the directory
# to check if dvc will detect that the cache is corrupted.
obj = load(self.dvc.odb.local, out.hash_info)
_, entry_obj = list(obj)[0]
_, _, entry_obj = list(obj)[0]
cache = os.fspath(
self.dvc.odb.local.hash_to_path_info(entry_obj.hash_info.value)
)