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

Method dump_stages

dvc/dvcfile.py:245–261  ·  view source on GitHub ↗
(self, stages, update_pipeline=True, update_lock=True, **kwargs)

Source from the content-addressed store, hash-verified

243 )
244
245 def dump_stages(self, stages, update_pipeline=True, update_lock=True, **kwargs):
246 from dvc.stage import PipelineStage
247
248 if not stages:
249 return
250
251 for stage in stages:
252 assert isinstance(stage, PipelineStage)
253
254 if self.verify:
255 check_dvcfile_path(self.repo, self.path)
256
257 if update_pipeline:
258 self._dump_pipeline_file(stages)
259
260 if update_lock:
261 self._dump_lockfile(stages, **kwargs)
262
263 def dump_dataset(self, dataset):
264 with modify_yaml(self.path, fs=self.repo.fs) as data:

Callers 1

dumpMethod · 0.95

Calls 3

_dump_pipeline_fileMethod · 0.95
_dump_lockfileMethod · 0.95
check_dvcfile_pathFunction · 0.85

Tested by

no test coverage detected