gabriel / muse public
refactor BREAKING dev
AI Agent gabriel · 134 days ago · May 4, 2026 · Diff

refactor: rename created_on_branch → branch throughout

CommitRecord, CommitDict, all CLI commands, and all tests now use the canonical field name 'branch'. The from_dict() backward-compat shim (reading 'created_on_branch' from old stored msgpack files) is the only survivor, intentionally. test_commit_record_schema_v2.py deleted — replaced by test_commit_record_schema.py which documents the current contract without leaking schema version history.

sha256:1fdaa4ca03171decbde5067933aac92680433c66e92a0a68cc536b3f284057e7 sha
+36 ~442 −28 symbols
sha256:3fcdc0e50ef544c329fc32cf8ae3f4800d1b6f3c90934d7cd33f8c0375c3851b snapshot
+36
symbols added
~442
symbols modified
−28
symbols removed
0
dead code introduced
Semantic Changes 506 symbols
~ tests/test_commit_record_schema.py .py 28 symbols added
+ TestCommitDict class class TestCommitDict L158–173
+ test_commit_dict_has_branch_key method method test_commit_dict_has_branch_key L159–167
+ test_commit_dict_has_no_format_version_key method method test_commit_dict_has_no_format_version_key L169–173 ← moved from tests/test_commit_record_schema_v2.py
+ TestCommitRecordFields class class TestCommitRecordFields L45–81
+ test_has_branch_field method method test_has_branch_field L46–55
+ test_has_no_created_on_branch_field method method test_has_no_created_on_branch_field L57–68
+ test_has_no_format_version_field method method test_has_no_format_version_field L70–81
+ TestCommitRecordFromMsgpack class class TestCommitRecordFromMsgpack L122–150
+ test_falls_back_to_created_on_branch_for_old_records method method test_falls_back_to_created_on_branch_for_old_records L128–136
+ test_from_msgpack_ignores_format_version_key method method test_from_msgpack_ignores_format_version_key L144–150
+ test_raises_when_neither_key_present method method test_raises_when_neither_key_present L138–142
+ test_reads_branch_key method method test_reads_branch_key L123–126
+ TestCommitRecordToDict class class TestCommitRecordToDict L89–114
+ _make method method _make L90–98
+ test_to_dict_has_branch_key method method test_to_dict_has_branch_key L100–102
+ test_to_dict_has_no_created_on_branch_key method method test_to_dict_has_no_created_on_branch_key L104–108
+ test_to_dict_has_no_format_version_key method method test_to_dict_has_no_format_version_key L110–114
+ _CID variable variable _CID L24–24 ← moved from tests/test_commit_record_schema_v2.py
+ _NOW variable variable _NOW L22–22 ← moved from tests/test_commit_record_schema_v2.py
+ _SID variable variable _SID L25–25 ← moved from tests/test_commit_record_schema_v2.py
+ _TS variable variable _TS L23–23 ← moved from tests/test_commit_record_schema_v2.py
+ _minimal_msgpack function function _minimal_msgpack L28–37
+ CommitDict import import CommitDict L14–14
+ CommitRecord import import CommitRecord L14–14 ← moved from tests/test_commit_record_schema_v2.py
+ MsgpackDict import import MsgpackDict L15–15 ← moved from tests/test_commit_record_schema_v2.py
+ annotations import import annotations L8–8 ← moved from tests/test_commit_record_schema_v2.py
+ datetime import import datetime L10–10 ← moved from tests/test_commit_record_schema_v2.py
+ pytest import import pytest L12–12 ← moved from tests/test_commit_record_schema_v2.py
~ tests/test_commit_record_schema_v2.py .py 28 symbols removed
TestCommitDict class class TestCommitDict L162–177
test_commit_dict_has_created_on_branch_key method method test_commit_dict_has_created_on_branch_key L163–171
test_commit_dict_has_no_format_version_key method method test_commit_dict_has_no_format_version_key L173–177 → moved to tests/test_commit_record_schema.py
TestCommitRecordFields class class TestCommitRecordFields L48–84
test_has_created_on_branch method method test_has_created_on_branch L49–58
test_has_no_branch_field method method test_has_no_branch_field L60–71
test_has_no_format_version_field method method test_has_no_format_version_field L73–84
TestCommitRecordFromMsgpack class class TestCommitRecordFromMsgpack L125–154
test_falls_back_to_branch_key_for_old_records method method test_falls_back_to_branch_key_for_old_records L131–140
test_from_msgpack_ignores_format_version_key method method test_from_msgpack_ignores_format_version_key L148–154
test_raises_when_neither_key_present method method test_raises_when_neither_key_present L142–146
test_reads_created_on_branch method method test_reads_created_on_branch L126–129
TestCommitRecordToDict class class TestCommitRecordToDict L92–117
_make method method _make L93–101
test_to_dict_has_created_on_branch method method test_to_dict_has_created_on_branch L103–105
test_to_dict_has_no_branch_key method method test_to_dict_has_no_branch_key L107–111
test_to_dict_has_no_format_version_key method method test_to_dict_has_no_format_version_key L113–117
_CID variable variable _CID L27–27 → moved to tests/test_commit_record_schema.py
_NOW variable variable _NOW L25–25 → moved to tests/test_commit_record_schema.py
_SID variable variable _SID L28–28 → moved to tests/test_commit_record_schema.py
_TS variable variable _TS L26–26 → moved to tests/test_commit_record_schema.py
_minimal_msgpack function function _minimal_msgpack L31–40
CommitDict import import CommitDict L17–17
CommitRecord import import CommitRecord L17–17 → moved to tests/test_commit_record_schema.py
MsgpackDict import import MsgpackDict L18–18 → moved to tests/test_commit_record_schema.py
annotations import import annotations L11–11 → moved to tests/test_commit_record_schema.py
datetime import import datetime L13–13 → moved to tests/test_commit_record_schema.py
pytest import import pytest L15–15 → moved to tests/test_commit_record_schema.py
~ muse/cli/commands/cherry_pick.py .py 1 symbol modified
~ run
~ muse/cli/commands/commit.py .py 1 symbol modified
~ run
~ muse/cli/commands/commit_graph.py .py 2 symbols modified
~ muse/cli/commands/commit_tree.py .py 1 symbol modified
~ run
~ muse/cli/commands/find_symbol.py .py 3 symbols modified
~ muse/cli/commands/log.py .py 3 symbols modified
~ muse/cli/commands/merge.py .py 1 symbol modified
~ muse/cli/commands/pull.py .py 1 symbol modified
~ run
~ muse/cli/commands/query.py .py 3 symbols modified
~ muse/cli/commands/rebase.py .py 1 symbol modified
~ run
~ muse/cli/commands/revert.py .py 1 symbol modified
~ run
~ muse/cli/commands/shortlog.py .py 1 symbol modified
~ muse/core/rebase.py .py 1 symbol modified
~ muse/core/transport.py .py 1 symbol modified
~ muse/core/type_analysis.py .py 1 symbol modified
~ tests/test_algo_prefix_globs.py .py 1 symbol modified
~ tests/test_archive_command.py .py 1 symbol modified
~ tests/test_bare_hex_rejection.py .py 1 symbol modified
~ tests/test_cat_supercharge.py .py 1 symbol modified
~ tests/test_cli_clone.py .py 1 symbol modified
~ tests/test_cli_inspect.py .py 1 symbol modified
~ tests/test_cmd_apply.py .py 1 symbol modified
~ tests/test_cmd_apply_patch.py .py 1 symbol modified
~ tests/test_cmd_bisect.py .py 1 symbol modified
~ tests/test_cmd_blame.py .py 1 symbol modified
~ tests/test_cmd_bundle.py .py 1 symbol modified
~ tests/test_cmd_check.py .py 1 symbol modified
~ tests/test_cmd_cherry_pick.py .py 1 symbol modified
~ tests/test_cmd_clean.py .py 1 symbol modified
~ tests/test_cmd_content_grep.py .py 1 symbol modified
~ tests/test_cmd_core_cat.py .py 1 symbol modified
~ tests/test_cmd_describe.py .py 1 symbol modified
~ tests/test_cmd_for_each_ref.py .py 1 symbol modified
~ tests/test_cmd_format_patch.py .py 1 symbol modified
~ tests/test_cmd_gc_hardening.py .py 1 symbol modified
~ tests/test_cmd_ls_files.py .py 1 symbol modified
~ tests/test_cmd_ls_tree.py .py 1 symbol modified
~ tests/test_cmd_merge.py .py 1 symbol modified
~ tests/test_cmd_merge_base.py .py 1 symbol modified
~ tests/test_cmd_merge_dry_run.py .py 1 symbol modified
~ tests/test_cmd_merge_tree.py .py 1 symbol modified
~ tests/test_cmd_mv.py .py 1 symbol modified
~ tests/test_cmd_name_rev.py .py 1 symbol modified
~ tests/test_cmd_remaining.py .py 1 symbol modified
~ tests/test_cmd_reset_revert.py .py 1 symbol modified
~ tests/test_cmd_restore.py .py 1 symbol modified
~ tests/test_cmd_rev_parse.py .py 1 symbol modified
~ tests/test_cmd_rm.py .py 1 symbol modified
~ tests/test_cmd_shelf.py .py 1 symbol modified
~ tests/test_cmd_shortlog.py .py 1 symbol modified
~ tests/test_cmd_show.py .py 1 symbol modified
~ tests/test_cmd_snapshot_diff.py .py 1 symbol modified
~ tests/test_cmd_stress.py .py 1 symbol modified
~ tests/test_cmd_symbolic_ref.py .py 1 symbol modified
~ tests/test_cmd_tag.py .py 1 symbol modified
~ tests/test_cmd_test.py .py 1 symbol modified
~ repo
~ tests/test_cmd_update_ref.py .py 1 symbol modified
~ tests/test_cmd_verify_tag.py .py 1 symbol modified
~ tests/test_cmd_worktree.py .py 1 symbol modified
~ tests/test_code_migrate.py .py 8 symbols added
+ TestCommitRecordBranchField class class TestCommitRecordBranchField L792–858
+ _make_commit_record method method _make_commit_record L799–817
+ test_from_dict_reads_branch_key method method test_from_dict_reads_branch_key L833–837
+ test_from_dict_reads_legacy_created_on_branch method method test_from_dict_reads_legacy_created_on_branch L839–845
+ test_new_commit_needs_no_migration method method test_new_commit_needs_no_migration L847–858
+ test_to_dict_branch_value_correct method method test_to_dict_branch_value_correct L829–831
+ test_to_dict_does_not_emit_created_on_branch method method test_to_dict_does_not_emit_created_on_branch L823–827
+ test_to_dict_emits_branch_key method method test_to_dict_emits_branch_key L819–821
~ tests/test_code_query.py .py 1 symbol modified
~ tests/test_core_bisect.py .py 1 symbol modified
~ tests/test_core_blame.py .py 1 symbol modified
~ tests/test_core_doc_history.py .py 1 symbol modified
~ tests/test_core_gc.py .py 1 symbol modified
~ tests/test_core_merge_engine.py .py 1 symbol modified
~ tests/test_gc_full.py .py 1 symbol modified
~ tests/test_gc_supercharge.py .py 1 symbol modified
~ tests/test_integrity_I2_fsync.py .py 1 symbol modified
~ tests/test_lineage_supercharge.py .py 1 symbol modified
~ tests/test_merge_base_supercharge.py .py 1 symbol modified
~ tests/test_merge_supercharge.py .py 1 symbol modified
~ tests/test_mpack_bundle.py .py 1 symbol modified
~ tests/test_mpack_cmd_pack_unpack.py .py 1 symbol modified
~ tests/test_mpack_e2e.py .py 1 symbol modified
~ tests/test_music_query.py .py 1 symbol modified
~ tests/test_mv_supercharge.py .py 1 symbol modified
~ tests/test_name_rev_supercharge.py .py 1 symbol modified
~ tests/test_patch_id_supercharge.py .py 1 symbol modified
~ tests/test_push_have_filter.py .py 1 symbol modified
~ tests/test_range_diff_supercharge.py .py 1 symbol modified
~ tests/test_release.py .py 1 symbol modified
~ tests/test_release_analysis.py .py 1 symbol modified
~ tests/test_release_supercharge.py .py 1 symbol modified
~ tests/test_security_ast_dos.py .py 1 symbol modified
~ tests/test_stress_graph.py .py 1 symbol modified
~ _write
~ tests/test_update_ref_supercharge.py .py 1 symbol modified
~ tests/test_verify_tag_supercharge.py .py 1 symbol modified
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:1fdaa4ca03171decbde5067933aac92680433c66e92a0a68cc536b3f284057e7 --body "your comment"