Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite instead of abandoning empty commits.
Fixes jj-vcs#2760 Given the tree: ``` A-B-C \ B2 ``` And the command `jj rebase -s B -d B2` We were previously marking B as abandoned, despite the comment stating that we were marking it as being succeeded by B2. This resulted in a call to `rewrite(rewrites={}, abandoned={B})` instead of `rewrite(rewrites={B=>B2}, abandoned={})`, which then made the new parent of `C` into `A` instead of `B2`
- Loading branch information