Skip to main content

Module state

Module state 

Source
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§

ReviewEntry
ReviewKey
{source}/{id}, e.g. phab/D12345 or gh/mozilla/taskgraph/123. source is the configured source’s name (used to look up its ReviewSource impl); id is that source’s own review id. Used as the state map key and, via Paths::workspace_dir, the workspace directory name - the full slug (not just id) 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 in rq show’s TUI), since sync no longer creates these on its own. Stored in State::workspaces, keyed by a stable stack id; member reviews point at it via ReviewEntry::stack_id.

Enums§

Status