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

Function _split_legacy_hash_infos

dvc/data_cloud.py:52–64  ·  view source on GitHub ↗
(
    hash_infos: Iterable["HashInfo"],
)

Source from the content-addressed store, hash-verified

50
51
52def _split_legacy_hash_infos(
53 hash_infos: Iterable["HashInfo"],
54) -> tuple[set["HashInfo"], set["HashInfo"]]:
55 from dvc.cachemgr import LEGACY_HASH_NAMES
56
57 legacy = set()
58 default = set()
59 for hi in hash_infos:
60 if hi.name in LEGACY_HASH_NAMES:
61 legacy.add(hi)
62 else:
63 default.add(hi)
64 return legacy, default
65
66
67class DataCloud:

Callers 3

pushMethod · 0.85
pullMethod · 0.85
statusMethod · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected