Skip to main content

checkout

Function checkout 

Source
pub fn checkout(root: impl AsRef<Path>, run_id: &str) -> Result<()>
Expand description

Point HEAD at an existing run so the next run branches from it.

Errors when the run is unknown to this root: silently accepting a typo would attach the next experiment to a parent that does not exist, which is exactly the false edge this module refuses to make.