fix
BREAKING
merge
task/museattributes-permutations
#1 / 1
fix(merge): honor deletions in ours/theirs strategies; pyproject.toml = manual
- CodePlugin.merge: fix ours/theirs strategies to pop path when the chosen side deleted the file (l is None / r is None). The old 'l or b or ""' pattern fell back to base content, silently resurrecting deleted files. - .museattributes: change pyproject.toml rule from 'ours' to 'manual'. 'ours' silently discards incoming dependency changes from feature branches — a data integrity risk in an agent-first workflow. 'manual' forces human review on any merge that touches pyproject.toml. - tests/test_code_plugin_attributes.py: 101 tests covering all 12 change scenarios × 6 strategies, plus full coverage of every active .museattributes rule. The ours_deleted and theirs_deleted tests were RED before this fix.
sha256:9a4b378124ff81e66ed120cd0fa6620bc5841d7a6dceb678e512fedff492eef8
sha
+109
~2
symbols
sha256:5daae3bb909a88e0d8abda64d6e48bc612c04314ef65f0c4eb2c5c100e2f092e
snapshot
+109
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes
111 symbols
~
merge
+
test_ours_deleted_theirs_modified_conflicts
method
method test_ours_deleted_theirs_modified_conflicts L764–766
+
test_ours_modified_theirs_deleted_conflicts
method
method test_ours_modified_theirs_deleted_conflicts L768–770
+
test_both_added_different_reverts_to_absent
method
method test_both_added_different_reverts_to_absent L549–554
+
test_divergent_deletion_conflict_reverts_to_base
method
method test_divergent_deletion_conflict_reverts_to_base L564–569
+
test_both_added_different_forces_conflict
method
method test_both_added_different_forces_conflict L707–710
+
test_only_theirs_added_forces_conflict
method
method test_only_theirs_added_forces_conflict L688–692
+
test_ours_deleted_theirs_modified_forces_conflict
method
method test_ours_deleted_theirs_modified_forces_conflict L699–701
+
test_ours_modified_theirs_deleted_forces_conflict
method
method test_ours_modified_theirs_deleted_forces_conflict L703–705
+
test_core_manual_beats_any_other_rule
method
method test_core_manual_beats_any_other_rule L1012–1021
+
test_core_rule_beats_lower_priority_wildcard
method
method test_core_rule_beats_lower_priority_wildcard L879–887
+
test_core_single_branch_change_forces_conflict
method
method test_core_single_branch_change_forces_conflict L854–861
+
test_core_unchanged_no_false_conflict
method
method test_core_unchanged_no_false_conflict L843–852
+
test_docs_disjoint_additions_both_kept
method
method test_docs_disjoint_additions_both_kept L893–901
+
test_nested_md_NOT_matched_by_root_glob
method
method test_nested_md_NOT_matched_by_root_glob L997–1006
+
test_pyproject_divergent_forces_conflict
method
method test_pyproject_divergent_forces_conflict L975–981
+
test_pyproject_single_branch_change_forces_conflict
method
method test_pyproject_single_branch_change_forces_conflict L964–973
+
test_tests_same_file_divergent_prefers_ours
method
method test_tests_same_file_divergent_prefers_ours L928–937
+
test_ours_deleted_theirs_modified_ours_wins
method
method test_ours_deleted_theirs_modified_ours_wins L432–437
+
test_ours_modified_theirs_deleted_takes_ours
method
method test_ours_modified_theirs_deleted_takes_ours L425–430
+
test_both_added_different_takes_theirs
method
method test_both_added_different_takes_theirs L480–484
+
test_ours_deleted_theirs_modified_takes_theirs
method
method test_ours_deleted_theirs_modified_takes_theirs L494–499
+
test_ours_modified_theirs_deleted_theirs_wins
method
method test_ours_modified_theirs_deleted_theirs_wins L501–506
+
test_both_added_different_prefers_ours
method
method test_both_added_different_prefers_ours L613–617
+
test_divergent_prefers_left_for_blobs
method
method test_divergent_prefers_left_for_blobs L598–603
+
test_ours_deleted_theirs_modified_keeps_theirs
method
method test_ours_deleted_theirs_modified_keeps_theirs L627–632
← Older
Oldest on task/museattributes-permutations
All commits
Newer →
Latest on task/museattributes-permutations
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:9a4b378124ff81e66ed120cd0fa6620bc5841d7a6dceb678e512fedff492eef8 --body "your comment"
No comments yet. Be the first to start the discussion.