Skip to content

Commit

Permalink
index: add dump_data_to_outs
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Oct 1, 2023
1 parent 60abc05 commit aa9ad73
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dvc/repo/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,20 @@ def _load_data_from_outs(index, prefix, outs):
)


def _dump_data_to_outs(index, outs):
for out in outs:
if not out.use_cache:
continue

_, key = out.index_key
entry = index.get(key)
if entry is None:
continue

out.meta = entry.meta
out.hash_info = entry.hash_info


def _load_storage_from_out(storage_map, key, out):
from dvc.cachemgr import LEGACY_HASH_NAMES
from dvc.config import NoRemoteError
Expand Down

0 comments on commit aa9ad73

Please sign in to comment.