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

Method dump

dvc/dvcfile.py:193–202  ·  view source on GitHub ↗

Dumps given stage appropriately in the dvcfile.

(self, stage, **kwargs)

Source from the content-addressed store, hash-verified

191 return self.LOADER(self, data, raw)
192
193 def dump(self, stage, **kwargs) -> None:
194 """Dumps given stage appropriately in the dvcfile."""
195 from dvc.stage import PipelineStage
196
197 assert not isinstance(stage, PipelineStage)
198 if self.verify:
199 check_dvcfile_path(self.repo, self.path)
200 logger.debug("Saving information to '%s'.", relpath(self.path))
201 dump_yaml(self.path, serialize.to_single_stage_file(stage, **kwargs))
202 self.repo.scm_context.track_file(self.relpath)
203
204 def dump_stages(self, stages, **kwargs) -> None:
205 if not stages:

Callers 3

dump_stagesMethod · 0.95
mergeMethod · 0.95
test_reloadFunction · 0.95

Calls 4

relpathFunction · 0.90
dump_yamlFunction · 0.90
check_dvcfile_pathFunction · 0.85
track_fileMethod · 0.80

Tested by 1

test_reloadFunction · 0.76