Repository navigation
docs(list): correct stale phase comments in collect/mod.rs - #4254
Merged
Merged
Conversation
The post-skeleton diagram listed integration_targets() inside the rayon scope, though it needs the ref snapshot and runs after the join; the snapshot capture that does run there was missing. The stale default branch warning was described as post-skeleton, though it is emitted before the skeleton. A comment named two functions that no longer exist as the site of URL template expansion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The module docstring in
src/commands/list/collect/mod.rsis the phase contract thatsrc/commands/list/AGENTS.mdpoints readers at, and three parts of it no longer matched the code. This PR updates those comments only; there is no behavior change.integration_targets()as a spawn inside therayon::scope. It can't run there:Repository::integration_targetstakes theRefSnapshot, so it runs after the scope joins (collect/mod.rs). The diagram also left out the spawn that does run there: the snapshot capture, withprime_upstream_ahead_behind_cachenested inside it. The diagram now shows both, and placesintegration_targetsafter the join.render_skeleton(). The paragraph also said the check reuses the branch list "fetched for--branches". Butwt list(DeferredToParallel) always fetches local branches, so an extrafor-each-refonly happens on the picker'sResolvedpath with branches hidden. The paragraph now sits next to fork fix: Remove PATH leak from snapshot tests #5 in the critical-path section and says exactly that.collect_worktree_progressiveandcollect_branch_progressiveas the place where URL templates get expanded. Neither function exists anymore. Expansion happens inwork_items_for_worktreeon the main thread, and branch-only rows have no URL, so the comment's "parallelizes the work" claim was dropped too.These comments had no regression test to add.
cargo doc --document-private-itemsbuilds cleanly, and the pre-commit hooks pass (fmt, clippy, typos).