fix
BREAKING
transport
task/fix-local-transport-snapshot-delta
#1 / 1
fix(transport): convert SnapshotDict→delta in push_stream; use delta_add in fetch_stream
LocalFileTransport.push_stream passed SnapshotDict (manifest key) directly into MPackBundle.snapshots, but apply_mpack/_apply_snapshot_deltas only understands SnapshotDeltaDict (delta_add/delta_remove). Snapshots were never written to the remote after a local push, so subsequent pulls saw missing snapshots and excluded the commits from the pack.
fetch_stream also collected object IDs from snap.get('manifest') but build_mpack produces SnapshotDeltaDict entries, so all_oids was always empty and on_object was never called — objects were not dispatched to the pull caller.
Both bugs together caused test_pull_fetches_commit_and_objects to fail with exit_code=1 (pull aborted: commit not readable after apply).
sha256:b8a9d02470ceeb56c636e7b4b5b2a61613f19f15aad89dbff8d83424c47d63d5
sha
sha256:087548d4489bcd55faca267e379533d9aae08c15d9b54f02378a0a2f7e32db09
snapshot
← Older
Oldest on task/fix-local-transport-snapshot-delta
All commits
Newer →
Latest on task/fix-local-transport-snapshot-delta
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:b8a9d02470ceeb56c636e7b4b5b2a61613f19f15aad89dbff8d83424c47d63d5 --body "your comment"
No comments yet. Be the first to start the discussion.