mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Merge pull request #1668 from prihoda/patch-1
Log computed stage MD5 in verbose mode
This commit is contained in:
+3
-3
@@ -564,9 +564,9 @@ class Stage(object):
|
||||
# NOTE: excluding parameters that don't affect the state of the
|
||||
# pipeline. Not excluding `OutputLOCAL.PARAM_CACHE`, because if
|
||||
# it has changed, we might not have that output in our cache.
|
||||
return dict_md5(
|
||||
d, exclude=[self.PARAM_LOCKED, OutputLOCAL.PARAM_METRIC]
|
||||
)
|
||||
m = dict_md5(d, exclude=[self.PARAM_LOCKED, OutputLOCAL.PARAM_METRIC])
|
||||
logger.debug("Computed stage '{}' md5: '{}'".format(self.relpath, m))
|
||||
return m
|
||||
|
||||
def save(self):
|
||||
for dep in self.deps:
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ from dvc.stage import Stage
|
||||
|
||||
class TestStageChecksum(TestCase):
|
||||
def test(self):
|
||||
stage = Stage(None)
|
||||
stage = Stage(None, "path")
|
||||
outs = [{"path": "a", "md5": "123456789"}]
|
||||
deps = [{"path": "b", "md5": "987654321"}]
|
||||
d = {"md5": "123456", "cmd": "mycmd", "outs": outs, "deps": deps}
|
||||
|
||||
Reference in New Issue
Block a user