-
Notifications
You must be signed in to change notification settings - Fork 323
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
revset: allow tags() to take a pattern for an argument #4907
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
ec6fe43
to
91ab64f
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.
Looks fine, but would you mind adding a couple tests (just 2 or 3 very simple ones) inside the cat cli/tests/test_tag_command.rs
suite? That will ensure that not only is the revset engine parsing and handling patterns correctly, but that from a user POV the command behaves as expected. You can just add a new fn test_tag_patterns()
and copy/paste the boilerplate from the other existing test. Otherwise LGTM.
91ab64f
to
499a194
Compare
499a194
to
27a8e1b
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!
This makes it more consistent with `bookmarks()`. Co-authored-by: Austin Seipp <[email protected]>
27a8e1b
to
338ea23
Compare
@yuja I'm not sure what PR etiquette is here, in general do you prefer resolving your conversations once you're satisfied with the resolution, or do I do it once I've addressed the issue? |
It's the middle of the night in Japan, so I'll answer. Feel free to mark the issue resolved if you're reasonably confident you resolved it. If you still missed something (e.g. because you misunderstood a reviewer's request), we (collectively, including you) can always fix it after it's merged. I interpret Yuya's approval stamp to mean that the remaining changes were small enough that he trusted you to address them. Still, in a case like this where the change was fairly large (moving the tests to the lib crate), I would personally give the reviewer another chance to review the new state before I merged. |
Checklist
If applicable:
CHANGELOG.md