Skip to main content

PostActivateRevsHook

Type Alias PostActivateRevsHook 

Source
pub type PostActivateRevsHook = Arc<dyn Fn(&Path, &str, &[String]) -> Result<()> + Send + Sync>;
Expand description

Hook fired after a successful clone/update when revisions were requested on the activation call (repo_management(revs=…) / set_root_dir(revs=…)). Receives the repo path, the org/repo (or synthetic local) name, and the resolved revspecs in oldest→newest order — for a Count(n) request the final entry is always HEAD, so a downstream multi-rev builder can merge oldest→newest with HEAD’s signature winning. Set via Workspace::with_post_activate_revs.

Additive by design (mirrors ActivationSummaryHook): existing consumers that register only the plain PostActivateHook are unaffected. When revs are requested but this hook is not set, the plain hook runs instead (a single-rev / HEAD build) and the resolved list is not reported in the activation message.

Aliased Type§

pub struct PostActivateRevsHook { /* private fields */ }