fix
patch
push/dry-run
task/mwp-7-sibling-negotiation
#3 / 5
fix(push/dry-run): align --dry-run commit walk to live have-negotiation (muse#32)
Use _all_known_have_anchors for the commit walk boundary in dry-run mode, matching the live path which reads ALL remote branch heads after GET /refs. Previously, dry-run used only get_remote_head(remote, push_branch) — a single-branch tip that ignored sibling refs, causing over-counting when a sibling branch had already been pushed.
After this change, both dry_commits and dry_objects derive from the same `have` set. Dry-run counts equal the live push when tracking refs are fresh (after muse fetch).
Tests: DR_01 (red→green, 2 variants), DR_02 (object parity, 2 variants). Adjacent corpus: 85 passed, 0 regressions.
sha256:dce546e01303125e7a80339e86a843aa90c41117ba84bcb7c6c99fac9d92729e
sha
+11
~2
symbols
sha256:8cbb263328b17f90b42eb0666d255f181d325b8fb1452e46b193ff34e80b1cac
snapshot
+11
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes
13 symbols
~
run
+
test_DR01_dry_run_overcounts_when_main_not_yet_pushed
method
method test_DR01_dry_run_overcounts_when_main_not_yet_pushed L867–900
+
test_DR01_large_chain_mirrors_incident_report
method
method test_DR01_large_chain_mirrors_incident_report L902–929
+
test_DR02_objects_sent_matches_live_merge_with_one_blob
method
method test_DR02_objects_sent_matches_live_merge_with_one_blob L947–972
+
test_DR02_objects_sent_zero_for_pure_merge
method
method test_DR02_objects_sent_zero_for_pure_merge L974–996
Older
test(mwp7/phase2-mode-a): regression anchors LF_01+LF_02; adjace…
sha256:c771300001658a1fc62cbe0ce39583c3b8ede325c4f2cef4181059049a4c7374
All commits
Newer
fix(push/dry-run): remove c!=local_head filter so up-to-date dry…
sha256:6ec37c93009f7c30451ea8db62a0a1b764bb79fa93231b5506bb6855251b3e5d
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:dce546e01303125e7a80339e86a843aa90c41117ba84bcb7c6c99fac9d92729e --body "your comment"
No comments yet. Be the first to start the discussion.