Skip to content
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

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

lukerandall
Copy link
Collaborator

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

Copy link

google-cla bot commented Nov 18, 2024

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.

@lukerandall lukerandall force-pushed the push-wwvrpwmqynyp branch 2 times, most recently from ec6fe43 to 91ab64f Compare November 18, 2024 21:02
@lukerandall lukerandall marked this pull request as ready for review November 18, 2024 21:09
Copy link
Collaborator

@thoughtpolice thoughtpolice left a 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.

Copy link
Collaborator

@yuja yuja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

cli/tests/test_tag_command.rs Outdated Show resolved Hide resolved
lib/src/view.rs Outdated Show resolved Hide resolved
This makes it more consistent with `bookmarks()`.

Co-authored-by: Austin Seipp <[email protected]>
@lukerandall
Copy link
Collaborator Author

@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?

@martinvonz
Copy link
Owner

@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.

@lukerandall lukerandall merged commit 068fa0f into martinvonz:main Nov 20, 2024
18 checks passed
@lukerandall lukerandall deleted the push-wwvrpwmqynyp branch November 20, 2024 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants