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

Rename conflict revset to conflicts. #4334

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Rename conflict revset to conflicts. #4334

merged 1 commit into from
Sep 24, 2024

Conversation

essiene
Copy link
Contributor

@essiene essiene commented Aug 24, 2024

See discussion thread in linked issue.

With this PR, all revset functions in BUILTIN_FUNCTION_MAP
that return multiple values are either named in plural or the naming is hard to misunderstand (e.g. reachable)

Fixes: #4122

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

@essiene essiene marked this pull request as ready for review August 24, 2024 20:49
@essiene essiene requested a review from martinvonz August 24, 2024 20:49
@martinvonz
Copy link
Member

I'm for this change, so I'll let someone else review this PR. (Also, Essien and I work for the same company, so there's also that potential conflict of interest.)

@martinvonz
Copy link
Member

I'm for this change, so I'll let someone else review this PR.

To clarify, I don't mean that only someone who's against this should review it :) I just mean that I've already said elsewhere that I'm for it, so I want to give others a chance to say what they think, in particular Yuya who seemed ambivalent.

Copy link
Member

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

I'm completely OK with this, though maybe an alias with a warning wouldn't hurt. (Someone else can hold this PR back if they think that's important enough.)

lib/src/revset.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@essiene essiene force-pushed the push-mtzuutonymno branch from 43a0b8f to 593b283 Compare August 27, 2024 17:53
@essiene essiene force-pushed the push-mtzuutonymno branch 4 times, most recently from c6267bb to 1173f05 Compare September 24, 2024 09:42
See discussion thread in linked issue.

With this PR, all revset functions in [BUILTIN_FUNCTION_MAP](https://github.com/martinvonz/jj/blob/8d166c764251042287626ab37a1148386cef8371/lib/src/revset.rs#L570)
that return multiple values are either named in plural or the naming is hard to misunderstand (e.g. `reachable`)

Fixes: #4122
@essiene essiene merged commit 895d53f into main Sep 24, 2024
31 checks passed
@essiene essiene deleted the push-mtzuutonymno branch September 24, 2024 19:02
essiene added a commit that referenced this pull request Sep 24, 2024
essiene added a commit that referenced this pull request Sep 24, 2024
essiene added a commit that referenced this pull request Sep 24, 2024
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.

FR: Rename conflict() revset function to conflicts()
4 participants