mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
Merge pull request #1363 from efiop/master
status: support --with-deps for local status
This commit is contained in:
+5
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user