Skip to content

Commit

Permalink
refactor: extract stage loading outside of dvcfile (#3655)
Browse files Browse the repository at this point in the history
* refactor: extract stage loading outside of dvcfile

* repo: simplify stage collection

* fix typing
  • Loading branch information
skshetry authored Apr 20, 2020
1 parent 224b0fc commit 63c466d
Show file tree
Hide file tree
Showing 24 changed files with 404 additions and 377 deletions.
4 changes: 2 additions & 2 deletions dvc/command/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _show(self, target, commands, outs, locked):
from dvc.utils import parse_target

path, name = parse_target(target)
stage = dvcfile.Dvcfile(self.repo, path).load_one(name)
stage = dvcfile.Dvcfile(self.repo, path).stages[name]
G = self.repo.pipeline_graph
stages = networkx.dfs_postorder_nodes(G, stage)
if locked:
Expand All @@ -49,7 +49,7 @@ def _build_graph(self, target, commands=False, outs=False):
from dvc.utils import parse_target

path, name = parse_target(target)
target_stage = dvcfile.Dvcfile(self.repo, path).load_one(name)
target_stage = dvcfile.Dvcfile(self.repo, path).stages[name]
G = get_pipeline(self.repo.pipelines, target_stage)

nodes = set()
Expand Down
Loading

0 comments on commit 63c466d

Please sign in to comment.