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

FR: support string concatenation in the revset language #5895

Open
afranchuk opened this issue Mar 6, 2025 · 1 comment
Open

FR: support string concatenation in the revset language #5895

afranchuk opened this issue Mar 6, 2025 · 1 comment
Labels
polish🪒🐃 Make existing features more convenient and more consistent

Comments

@afranchuk
Copy link

Is your feature request related to a problem? Please describe.
Revset aliases are very useful, however I've found that I can't concatenate strings, which would make them even more useful. In particular, I'm trying to write an alias which matches changes with a particular form of string in the subject line (that combines a fixed string with the alias parameter).

Describe the solution you'd like
Something like concat() or ++ (like the templating language) would be great.

Describe alternatives you've considered
I've tried to create an equivalent alias combining multiple separate subject() matches, but it's not able to be as accurate as one with the exact string that needs to be matched.

@PhilipMetzger PhilipMetzger added the polish🪒🐃 Make existing features more convenient and more consistent label Mar 6, 2025
@yuja
Copy link
Contributor

yuja commented Mar 7, 2025

This might be a pre-processing (or alias-specific) syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
polish🪒🐃 Make existing features more convenient and more consistent
Projects
None yet
Development

No branches or pull requests

3 participants