Files
jj-vcs-jj/lib/tests/test_commit_builder.rs
Yuya Nishihara 0dc9eb5187 commit_builder: error out if newly-created commit was already known to repo
This can happen if we remove predecessors from the commit object, and if
committer timestamp wasn't updated (like in some jj-lib tests.) It's not wrong
for the store to "overwrite" existing objects, but the repo expects
new/rewritten commits have unique ids. If they didn't, cycle would be created in
mut_repo.commit_predecessors/parent_mapping.
2025-06-05 10:15:09 +00:00

16 KiB