-
Notifications
You must be signed in to change notification settings - Fork 319
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
Implement #2475 #3410
Implement #2475 #3410
Conversation
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.
Regarding #2475, I think the default revset can be turned off if any path arguments are specified.
jj log # use default revset
jj log -rREV # REV
jj log PATH # file(PATH)
jj log -rREV PATH # REV & file(PATH)
It implies that the PATH
and REV
arguments are basically the same things (with a bit different representations.) WDYT?
What is the special case? If I do
I should get 3 different results. |
Special case exists only for The current definition is: My proposal is: |
Without knowing the code, it seems that the revset is needed (as in the bare |
I agree that it seems better to not use the default revset if any paths were passed. I think that's almost always what I want. |
I added another commit which changes the behavior to reflect this. If it looks good to you I'll restructure the changes |
These sound good to me, thanks.
Meh, no. If the user specified both, it's clear that they want to filter by both revset and paths. BTW, I've changed |
54d954c
to
7d23f43
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.
LGTM, thanks. Can you squash these patches? We usually include doc/tests changes in the commit which introduce the new behavior.
f9c537a
to
1582629
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.
thanks!
1582629
to
9d4fb6a
Compare
Also, thank you! |
9d4fb6a
to
6a89baa
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.
Thanks!
6a89baa
to
5da3827
Compare
5da3827
to
3acd68c
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 don't think you needed to wait for my approval, but just in case.
I'm not allowed to merge though, but judging by the fact that my name just turned green on discord I assume someone is already working on that :) |
I actually thought I already had done that. Done now anyway. |
Implementation for #2475
Checklist
If applicable:
CHANGELOG.md