mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-09 23:10:24 +01:00
repo: use is_repo_import to check for imports in outs_graph (#9925)
repo: use is_repo_import to check for imports
This commit is contained in:
+2
-3
@@ -158,10 +158,9 @@ def build_outs_graph(graph, outs_trie):
|
||||
|
||||
outs_graph.add_nodes_from(outs_trie.values())
|
||||
for stage in graph.nodes():
|
||||
if stage.is_repo_import:
|
||||
continue
|
||||
for dep in stage.deps:
|
||||
if dep.fs_path is None:
|
||||
# RepoDependency don't have a path
|
||||
continue
|
||||
dep_key = dep.fs.path.parts(dep.fs_path)
|
||||
overlapping = [n.value for n in outs_trie.prefixes(dep_key)]
|
||||
if outs_trie.has_subtrie(dep_key):
|
||||
|
||||
Reference in New Issue
Block a user