Skip to main content

restore_project_to_depth

Function restore_project_to_depth 

Source
pub fn restore_project_to_depth(
    project_path: &Path,
    global_depth: usize,
    timeout: Duration,
) -> Result<Vec<(String, Result<()>)>>
Expand description

Restore dependencies across every project in a tree.

Mirrors pruning: if frontend/, services/api/ and cli/ were each pruned, each is restored by its own manager. The returned label is the adapter name for a project at the root and adapter (relative/path) for a nested one.

Restore must reach at least as deep as the prune did. A repository configured to a depth of 10 and pruned at 10, then restored at the default 6, comes back with its deepest projects still empty — and nothing would have said so. timeout is the user’s command_timeout_secs for the same reason: a full reinstall is the longest command this tool ever runs, and it used to be the only one that ignored the setting.