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

Method pull

dvc/stage/cache.py:284–291  ·  view source on GitHub ↗
(self, remote: Optional[str], odb: Optional["ObjectDB"] = None)

Source from the content-addressed store, hash-verified

282 return self.transfer(self.repo.cache.legacy, dest_odb)
283
284 def pull(self, remote: Optional[str], odb: Optional["ObjectDB"] = None):
285 try:
286 odb = odb or self.repo.cloud.get_remote_odb(
287 remote, "fetch --run-cache", hash_name="md5-dos2unix"
288 )
289 except RemoteConfigError as e:
290 raise RunCacheNotSupported(e) from e
291 return self.transfer(odb, self.repo.cache.legacy)
292
293 def get_used_objs(self, used_run_cache, *args, **kwargs):
294 """Return used cache for the specified run-cached stages."""

Callers 15

runMethod · 0.45
runMethod · 0.45
_pull_missing_depsFunction · 0.45
restoreMethod · 0.45
reproduceMethod · 0.45
test_import_fileMethod · 0.45
test_import_dirMethod · 0.45
testMethod · 0.45
test_pull_00_prefixMethod · 0.45

Calls 3

transferMethod · 0.95
get_remote_odbMethod · 0.80

Tested by 13

test_import_fileMethod · 0.36
test_import_dirMethod · 0.36
testMethod · 0.36
test_pull_00_prefixMethod · 0.36
test_fileMethod · 0.36
test_dirMethod · 0.36
test_fileMethod · 0.36
test_dirMethod · 0.36
test_deletionMethod · 0.36