-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow simultaneous rebasing of duplicate commits, duplicating multiple commits, undo after duplicate #1049
Conversation
I made this a draft until I figure out whether we can fix #1050 or I should work around it by not using Update: Martin helped me fix the bug. Thank you! |
e6aca27
to
549acce
Compare
2fa1275
to
cadb2fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't finish reviewing the last two commits. I'll probably get around to that later tonight.
20d885a
to
adec189
Compare
cd1d0ab
to
41e6d5a
Compare
Fixes #1050 Thanks to Martin for suggesting the exact fix. The tests go into the new tests/test_duplicate_command.rs, which will be expanded shortly with other tests depending on this bugfix.
The `indexmap` crate is used to make `duplicate`'s output have a sane order, making it easier to test. It's also used later to remove duplicate revisions in the `abandon` command.
Thank you for the review and the help! :) |
Fixes #27, #694 and #1050
I combined the bugfix PRs with the feature PR into one since they are both ready. If a portion of this PR gets a faster review than the rest, I'll split them again.
Now also includes a minor fix to
jj abandon
: if the same revision is specified several times, it is now only listed once in the output.Checklist
If applicable:
CHANGELOG.md