refactor: canonicalize all long IDs through long_id() helper
Replace every bare string concatenation 'sha256:' + x and f-string f'sha256:{x}' with long_id(x) across production code and test files.
- Added long_id() helper to muse/core/_types.py with algo and strip params - Updated 12 production modules: snapshot, object_store, stat_cache, workdir, patch_record, hub_trust, code/plugin, rebase, range_diff, verify_pack, bundle, shelf, reflog, maintenance, format_patch, apply_patch, count_objects, prune, hash_object, verify_object, ls_tree, name_rev - Updated 85+ test files with long_id() calls and proper imports - Fixed test_rebase_supercharge.py TestShortId to import short_id from _types instead of non-existent _short_id from rebase module
sha256:9bcb403b0377d44b72f6336fafcd2ae3b3ca44200e9bb5d58db43f3da0d671a7
sha
sha256:fb28d1bef384e6aa8e6a2056945c0f300bf9a30a4e952d9ce2c6f8734c79972e
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:9bcb403b0377d44b72f6336fafcd2ae3b3ca44200e9bb5d58db43f3da0d671a7 --body "your comment"
No comments yet. Be the first to start the discussion.