deps/outs: get rid of self.info (#4502)

By itself `self.info` is quite confusing, as it is not clear what it is
about. Using `hash_info` makes much more sense and is required to
support alternative hash types.

Related to #4144, #3069, #1676
This commit is contained in:
Ruslan Kuprieiev
2020-08-31 22:46:18 +03:00
committed by GitHub
parent 4f8432886d
commit 56500601bd
16 changed files with 134 additions and 129 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ def test_uncached_outs_are_cached(tmp_dir, dvc, run_copy):
name="copy-foo-bar",
)
with dvc.state:
stage.outs[0].info = stage.outs[0].save_info()
stage.outs[0].hash_info = stage.outs[0].get_hash()
assert os.path.exists(relpath(stage.outs[0].cache_path))