pub fn find_root_parent(mana_dir: &Path, unit: &Unit) -> Result<String, Error>Expand description
Walk up the parent chain to find the root ancestor of a unit.
Returns the ID of the topmost parent (the unit with no parent). If the unit itself has no parent, returns its own ID.