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

escape bookmark and remote names in trunk() config #5475

Merged
merged 3 commits into from
Jan 31, 2025
Merged

Conversation

martinvonz
Copy link
Member

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

@martinvonz martinvonz force-pushed the push-ksxxwyqmryom branch 2 times, most recently from 50443ab to 6d7b96b Compare January 26, 2025 08:00
lib/src/revset.rs Outdated Show resolved Hide resolved
lib/src/revset.rs Outdated Show resolved Hide resolved
@martinvonz martinvonz force-pushed the push-ksxxwyqmryom branch 6 times, most recently from 8265518 to bc8d8d9 Compare January 30, 2025 17:30
Copy link
Contributor

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

LG, thanks.

cli/tests/test_git_clone.rs Outdated Show resolved Hide resolved
lib/src/dsl_util.rs Outdated Show resolved Hide resolved
lib/src/revset.rs Show resolved Hide resolved
@martinvonz martinvonz force-pushed the push-ksxxwyqmryom branch 3 times, most recently from 3704195 to a976eec Compare January 31, 2025 07:59
lib/src/dsl_util.rs Outdated Show resolved Hide resolved
lib/src/dsl_util.rs Outdated Show resolved Hide resolved
When we have e.g. a bookmark name or a remote name and we want to
produce a revset from it, we may need to quote and escape it. This
patch implements a function for that.

Perhaps we'll want to more generally be able to format a whole
`RevsetExpression` later.
@martinvonz martinvonz enabled auto-merge January 31, 2025 15:40
@martinvonz martinvonz added this pull request to the merge queue Jan 31, 2025
Merged via the queue into main with commit 0d00de7 Jan 31, 2025
36 checks passed
@martinvonz martinvonz deleted the push-ksxxwyqmryom branch January 31, 2025 16:09
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.

2 participants