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: detach index from internal evaluation tree #3273

Merged
merged 7 commits into from
Mar 12, 2024

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Mar 11, 2024

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

yuja added 7 commits March 11, 2024 17:30
This serves the same role as templater::Literal. I'm going to add basic
RevWalk adapters so that the revset evaluation tree can be constructed without
capturing the index. EagerRevWalk will help to write tests for these adapters.
This helps to migrate union/intersection/difference iterators to RevWalk.
FilterRevset will be built on top.
This is the step towards removing &CompositeIndex references from the revset
evaluation tree. The filter input is changed from &IndexEntry to IndexPosition
to simplify the lifetime thingy. We might want to pass around CommitId or
Commit object once it's loaded, but that can be implemented later. I don't
see significant performance difference in revset benches.
Now all source/sink nodes produce/consume IndexPosition, so it doesn't make
sense to keep InternalRevset::entries().
Perhaps, union/intersection/difference combinators can be moved to the
rev_walk module, but let's think about that later.
@torquestomp torquestomp self-assigned this Mar 11, 2024
@yuja yuja merged commit 2839074 into jj-vcs:main Mar 12, 2024
16 checks passed
@yuja yuja deleted the push-vkkrsmwuoupz branch March 12, 2024 11:59
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.

3 participants