Function
_split_legacy_hash_infos
(
hash_infos: Iterable["HashInfo"],
)
Source from the content-addressed store, hash-verified
| 50 | |
| 51 | |
| 52 | def _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 | |
| 67 | class DataCloud: |
Tested by
no test coverage detected