File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,22 @@ def create(
9494 if name not in added and snapshot .fingerprint != existing_info [name ].fingerprint
9595 }
9696
97+ modified_local_seed_snapshot_ids = {
98+ s .snapshot_id for s in snapshots .values () if s .is_seed and s .name in modified_info
99+ }
100+ modified_remote_snapshot_ids = {s .snapshot_id for s in modified_info .values ()}
101+
97102 stored = {
98- ** state_reader .get_snapshots ([snapshot .snapshot_id for snapshot in snapshots .values ()]),
99- ** state_reader .get_snapshots (modified_info .values (), hydrate_seeds = True ),
103+ ** state_reader .get_snapshots (
104+ [
105+ snapshot .snapshot_id
106+ for snapshot in snapshots .values ()
107+ if snapshot .snapshot_id not in modified_local_seed_snapshot_ids
108+ ]
109+ ),
110+ ** state_reader .get_snapshots (
111+ modified_remote_snapshot_ids | modified_local_seed_snapshot_ids , hydrate_seeds = True
112+ ),
100113 }
101114
102115 merged_snapshots = {}
You can’t perform that action at this time.
0 commit comments