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

Method fetch

dvc/updater.py:89–96  ·  view source on GitHub ↗
(self, detach=True)

Source from the content-addressed store, hash-verified

87 self._notify(latest)
88
89 def fetch(self, detach=True):
90 from dvc.daemon import daemon
91
92 if detach:
93 daemon(["updater"])
94 return
95
96 self._with_lock(self._get_latest_version, "fetching")
97
98 def _get_latest_version(self):
99 import json

Callers 13

_checkMethod · 0.95
runMethod · 0.95
runMethod · 0.80
_pullFunction · 0.80
pullFunction · 0.80
_pull_cacheFunction · 0.80
test_dirMethod · 0.80
test_missing_cacheFunction · 0.80
test_loads_single_fileFunction · 0.80
test_cache_reusedFunction · 0.80
test_pull_non_workspaceFunction · 0.80

Calls 2

_with_lockMethod · 0.95
daemonFunction · 0.90

Tested by 7

test_dirMethod · 0.64
test_missing_cacheFunction · 0.64
test_loads_single_fileFunction · 0.64
test_cache_reusedFunction · 0.64
test_pull_non_workspaceFunction · 0.64
test_fetchFunction · 0.64