Build and persist the latest content-addressed manifest for a session, preserving fork lineage from the current head.
(&self, session_id: &str)
| 338 | /// Build and persist the latest content-addressed manifest for a session, |
| 339 | /// preserving fork lineage from the current head. |
| 340 | pub fn publish_session_manifest(&self, session_id: &str) -> Result<Hash, RepositoryError> { |
| 341 | let (parent_session, fork_turn) = match self.get_session_head(session_id)? { |
| 342 | Some(head) => match self.get_session_manifest(&head)? { |
| 343 | Some(manifest) => (manifest.parent_session, manifest.fork_turn), |
| 344 | None => (None, None), |
| 345 | }, |
| 346 | None => (None, None), |
| 347 | }; |
| 348 | self.publish_session_manifest_with_fork(session_id, parent_session, fork_turn) |
| 349 | } |
| 350 | |
| 351 | /// Load an immutable session manifest by content hash. |
| 352 | pub fn get_session_manifest( |
no test coverage detected