MCPcopy
hub / github.com/treeverse/dvc / run

Method run

dvc/commands/data_sync.py:85–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83
84class CmdDataFetch(CmdDataBase):
85 def run(self):
86 from dvc.exceptions import DvcException
87
88 try:
89 processed_files_count = self.repo.fetch(
90 targets=self.args.targets,
91 jobs=self.args.jobs,
92 remote=self.args.remote,
93 all_branches=self.args.all_branches,
94 all_tags=self.args.all_tags,
95 all_commits=self.args.all_commits,
96 with_deps=self.args.with_deps,
97 recursive=self.args.recursive,
98 run_cache=self.args.run_cache,
99 max_size=self.args.max_size,
100 types=self.args.types,
101 )
102 self.log_summary({"fetched": processed_files_count})
103 except DvcException:
104 logger.exception("failed to fetch data from the cloud")
105 return 1
106 return 0
107
108
109def shared_parent_parser():

Callers

nothing calls this directly

Calls 2

fetchMethod · 0.80
log_summaryMethod · 0.45

Tested by

no test coverage detected