From e67dcd162e544be686396421a4d86572711ea9a5 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sat, 24 Nov 2018 11:33:46 +0200 Subject: [PATCH] status: support --with-deps for local status Fixes #1278 Signed-off-by: Ruslan Kuprieiev --- dvc/project.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dvc/project.py b/dvc/project.py index 053e39160..c0b3a00f4 100644 --- a/dvc/project.py +++ b/dvc/project.py @@ -788,11 +788,12 @@ class Project(object): with_deps=with_deps) self.checkout(target=target, with_deps=with_deps, force=force) - def _local_status(self, target=None): + def _local_status(self, target=None, with_deps=False): status = {} if target: - stages = [Stage.load(self, target)] + stages = self._collect(target, + with_deps=with_deps) else: stages = self.active_stages() @@ -859,7 +860,8 @@ class Project(object): all_branches=all_branches, with_deps=with_deps, all_tags=all_tags) - return self._local_status(target) + return self._local_status(target, + with_deps=with_deps) def _read_metric_json(self, fd, json_path): import json