fix
patch
delta
task/blob-rename-detection
#1 / 1
fix(delta): detect blob-identical file renames for files with no symbol tree
_detect_file_move_edits only matched renames via symbol tree body_hash overlap — files with no parseable symbols (plain .txt, unknown extensions) fell through to InsertOp + DeleteOp even when content_id was identical.
Strategy 2: after symbol-tree matching, compare raw blob content_ids for remaining unmatched added/removed paths. An exact match (score=1.0) is an unambiguous rename — emits PatchOp(from_address=old_path).
delta_summary now counts renamed files separately from modified files.
sha256:248464b6a2f758985cbef90f864fa62c61842be699d975d6e00b6a9509ef919c
sha
+35
~3
symbols
sha256:f0aa1efe6a90f6092724ba478911cc6c696dee4ec8afa35c4c668e889aed14da
snapshot
+35
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes
38 symbols
+
test_child_summary_mentions_from_path
method
method test_child_summary_mentions_from_path L191–204
+
test_txt_rename_patch_op_has_correct_address
method
method test_txt_rename_patch_op_has_correct_address L121–136
+
test_txt_rename_patch_op_has_from_address
method
method test_txt_rename_patch_op_has_from_address L138–153
+
test_txt_rename_produces_patch_op_not_insert_delete
method
method test_txt_rename_produces_patch_op_not_insert_delete L96–119
+
test_different_content_not_detected_as_rename
method
method test_different_content_not_detected_as_rename L272–298
+
test_same_extension_different_content_not_rename
method
method test_same_extension_different_content_not_rename L300–313
+
test_rename_ambiguity_resolved_by_content_id
method
method test_rename_ambiguity_resolved_by_content_id L393–415
+
test_python_file_rename_from_address_set
method
method test_python_file_rename_from_address_set L246–260
+
test_python_file_rename_same_content_produces_patch_op
method
method test_python_file_rename_same_content_produces_patch_op L217–244
← Older
Oldest on task/blob-rename-detection
All commits
Newer →
Latest on task/blob-rename-detection
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:248464b6a2f758985cbef90f864fa62c61842be699d975d6e00b6a9509ef919c --body "your comment"
No comments yet. Be the first to start the discussion.