-
Notifications
You must be signed in to change notification settings - Fork 382
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
jj rebase
and jj new
: Allow revsets with multiple commits with new --allow-large-revsets
argument
#1189
Conversation
jj rebase
: Allow revsets with multiple commits with new --multi
jj rebase
: Allow revsets with multiple commits with new --multi
jj rebase
: Allow revsets with multiple commits with new --multi
argument
30da17c
to
c767368
Compare
jj rebase
: Allow revsets with multiple commits with new --multi
argument jj rebase
and jj new
: Allow revsets with multiple commits with new --multi
argument
Thoughts on naming this |
The confusion is somewhat intentional in this case. The idea is that I agree this is not ideal, but I couldn't think of anything better. If you prefer to rely on |
I guess I'm not sure that revsets to -r/-s/-b should require an explicit confirmation in the form of (That said, you've obviously thought more about this than my pass-by comments and I'd appreciate #1158 being fixed more than not having to pass |
Yeah, I think that the name @avamsi You'd still be able to rebase multiple revsets without this option with |
jj rebase
and jj new
: Allow revsets with multiple commits with new --multi
argument jj rebase
and jj new
: Allow revsets with multiple commits with new --allow-large-revsets
argument
412724f
to
6b7a000
Compare
The revset is already printed in the error message, but it's easy to miss since the error message is in different color.
… general We'll soon need that functionality without the checking for rewriteable part.
This will make deduplication easier in the next commit. The error message becomes slightly less informative, unfortunately.
…ction This extracts the more general `resolve_mutliple_nonempty_revsets_flag_guarded` out of `resolve_base_revs`. This function should be useful for `rebase -s`, etc. `resolve_base_revs` is renamed to `resolve_destination_revs`; that's simply a better name for it. It is also quite specific to the `new` and `rebase -d` commands. It will be moved out of general utilities in the next commit
It's not very general.
Thank you, Martin, for the review! |
Eventually, we should be able to rely on
jj op restore
and the(Update:--multi
--allow-large-revsets
)argument should likely be removed. This is a temporary measure until we figure
out #922 and the like.
Fixes #571
Checklist
If applicable:
CHANGELOG.md