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

Function _pull_cache

dvc/repo/experiments/pull.py:105–118  ·  view source on GitHub ↗
(
    repo,
    refs: Union[ExpRefInfo, Iterable["ExpRefInfo"]],
    dvc_remote=None,
    jobs=None,
    run_cache=False,
)

Source from the content-addressed store, hash-verified

103
104
105def _pull_cache(
106 repo,
107 refs: Union[ExpRefInfo, Iterable["ExpRefInfo"]],
108 dvc_remote=None,
109 jobs=None,
110 run_cache=False,
111):
112 if isinstance(refs, ExpRefInfo):
113 refs = [refs]
114 revs = list(exp_commits(repo.scm, refs))
115 logger.debug("dvc fetch experiment '%s'", refs)
116 repo.fetch(
117 jobs=jobs, remote=dvc_remote, run_cache=run_cache, revs=revs, workspace=False
118 )

Callers 1

pullFunction · 0.85

Calls 2

exp_commitsFunction · 0.85
fetchMethod · 0.80

Tested by

no test coverage detected