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

Method _stash_commit_deps

dvc/repo/experiments/queue/base.py:376–394  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

374 )
375
376 def _stash_commit_deps(self, *args, **kwargs):
377 if args:
378 targets = args[0]
379 else:
380 targets = kwargs.get("targets")
381 if isinstance(targets, str):
382 targets = [targets]
383 elif not targets:
384 targets = [None]
385 for target in targets:
386 self.repo.commit(
387 target,
388 with_deps=True,
389 recursive=kwargs.get("recursive", False),
390 force=True,
391 allow_missing=True,
392 data_only=True,
393 relink=False,
394 )
395
396 @staticmethod
397 def _stash_msg(

Callers 1

_stash_expMethod · 0.95

Calls 2

getMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected