From d827fef8c4f8eccd062f1fb95b9bdbb28f29674c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Santos?= Date: Thu, 23 Jan 2020 12:39:07 +0000 Subject: [PATCH] add missing nodes --- dvc/command/pipeline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dvc/command/pipeline.py b/dvc/command/pipeline.py index 8fc35f864..e6a012a0e 100644 --- a/dvc/command/pipeline.py +++ b/dvc/command/pipeline.py @@ -40,7 +40,7 @@ class CmdPipelineShow(CmdBase): G = get_pipeline(self.repo.pipelines, target_stage) nodes = [] - for stage in G: + for stage in networkx.preorder_nodes(G, target_stage): if commands: if stage.cmd is None: continue @@ -48,6 +48,8 @@ class CmdPipelineShow(CmdBase): elif outs: for out in stage.outs: nodes.append(str(out)) + for dep in stage.deps: + nodes.append(str(dep)) else: nodes.append(stage.relpath)