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

Method push

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

Source from the content-addressed store, hash-verified

273 return ret
274
275 def push(self, remote: Optional[str], odb: Optional["ObjectDB"] = None):
276 try:
277 dest_odb = odb or self.repo.cloud.get_remote_odb(
278 remote, "push --run-cache", hash_name="md5-dos2unix"
279 )
280 except RemoteConfigError as e:
281 raise RunCacheNotSupported(e) from e
282 return self.transfer(self.repo.cache.legacy, dest_odb)
283
284 def pull(self, remote: Optional[str], odb: Optional["ObjectDB"] = None):
285 try:

Callers 15

runMethod · 0.45
runMethod · 0.45
testMethod · 0.45
test_pull_00_prefixMethod · 0.45
test_fileMethod · 0.45
test_dirMethod · 0.45
test_fileMethod · 0.45
test_dirMethod · 0.45
test_deletionMethod · 0.45
test_updateMethod · 0.45

Calls 3

transferMethod · 0.95
get_remote_odbMethod · 0.80

Tested by 12

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
test_updateMethod · 0.36
test_openMethod · 0.36
test_filesystemMethod · 0.36