Skip to content

Make revset symbol resolution async - #9910

Open
martinvonz wants to merge 2 commits into
mainfrom
mz/rkptzquvxpwl
Open

Make revset symbol resolution async#9910
martinvonz wants to merge 2 commits into
mainfrom
mz/rkptzquvxpwl

Conversation

@martinvonz

@martinvonz martinvonz commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

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/updated tests to cover my changes
  • I fully understand the code that I am submitting (what it does,
    how it works, how it's organized), including any code drafted by an LLM.
  • For any prose generated by an LLM, I have proof-read and copy-edited with
    an eye towards deleting anything that is irrelevant, clarifying anything
    that is confusing, and adding details that are relevant. This includes,
    for example, commit descriptions, PR descriptions, and code comments.

Revset symbol resolution will soon be async, so this needs to be async
too.
Symbol resolution can be customized and may involve I/O, so it should
be async.
@martinvonz
martinvonz requested a review from a team as a code owner August 3, 2026 16:11
@martinvonz martinvonz mentioned this pull request Aug 3, 2026
6 tasks
Comment thread lib/src/revset.rs
/// Transforms the `expression`. By default, inner items are transformed
/// recursively.
fn fold_expression(
async fn fold_expression(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you have any concerns about recursion here?

It might be better to collect all referenced symbols, resolve them all at once asynchronously, and then rewrite expressions recursively.

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