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

Method log_summary

dvc/commands/data_sync.py:12–21  ·  view source on GitHub ↗
(self, stats)

Source from the content-addressed store, hash-verified

10
11class CmdDataBase(CmdBase):
12 def log_summary(self, stats):
13 from dvc.ui import ui
14 from dvc.utils.humanize import get_summary
15
16 default_msg = "Everything is up to date."
17
18 if not self.args.remote and not self.repo.config["core"].get("remote"):
19 ui.warn("No remote provided and no default remote set.")
20
21 ui.write(get_summary(stats.items()) or default_msg)
22
23
24class CmdDataPull(CmdDataBase):

Callers 3

log_summaryMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 5

get_summaryFunction · 0.90
warnMethod · 0.80
writeMethod · 0.80
itemsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected