Expand description
state.json: the single source of truth for which reviews have a workspace,
where it lives, and whether it’s safe for sync to touch it.
Structs§
- Review
Entry - Review
Key {source}/{id}, e.g.phab/D12345orgh/mozilla/taskgraph/123.sourceis the configured source’s name (used to look up itsReviewSourceimpl);idis that source’s own review id. Used as the state map key and, viaPaths::workspace_dir, the workspace directory name - the full slug (not justid) is used there so ids can’t collide across sources sharing the same canonical repo.- State
- Workspace
- A local worktree/workspace fetched for a stack of reviews (a lone review is a stack of one) -
absent until the user explicitly asks for one (
rq fetch, or the open-locally hotkey inrq show’s TUI), sincesyncno longer creates these on its own. Stored inState::workspaces, keyed by a stable stack id; member reviews point at it viaReviewEntry::stack_id.