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

Method run

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

Source from the content-addressed store, hash-verified

59
60class CmdDataPush(CmdDataBase):
61 def run(self):
62 from dvc.exceptions import DvcException
63
64 try:
65 processed_files_count = self.repo.push(
66 targets=self.args.targets,
67 jobs=self.args.jobs,
68 remote=self.args.remote,
69 all_branches=self.args.all_branches,
70 all_tags=self.args.all_tags,
71 all_commits=self.args.all_commits,
72 with_deps=self.args.with_deps,
73 recursive=self.args.recursive,
74 run_cache=self.args.run_cache,
75 glob=self.args.glob,
76 )
77 self.log_summary({"pushed": processed_files_count})
78 except DvcException:
79 logger.exception("failed to push data to the cloud")
80 return 1
81 return 0
82
83
84class CmdDataFetch(CmdDataBase):

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
log_summaryMethod · 0.45

Tested by

no test coverage detected