fn checkout_revision_inner( root: &str, rev: &str, recursive: bool, allowed_protocol: Option<&str>, )