Build and persist the latest content-addressed manifest for a session, preserving fork lineage from the current head.
(&self, session_id: &str)
| 358 | /// Build and persist the latest content-addressed manifest for a session, |
| 359 | /// preserving fork lineage from the current head. |
| 360 | pub fn publish_session_manifest(&self, session_id: &str) -> Result<Hash, RepositoryError> { |
| 361 | let (parent_session, fork_turn) = match self.get_session_head(session_id)? { |
| 362 | Some(head) => match self.get_session_manifest(&head)? { |
| 363 | Some(manifest) => (manifest.parent_session, manifest.fork_turn), |
| 364 | None => (None, None), |
| 365 | }, |
| 366 | None => (None, None), |
| 367 | }; |
| 368 | self.publish_session_manifest_with_fork(session_id, parent_session, fork_turn) |
| 369 | } |
| 370 | |
| 371 | /// Load an immutable session manifest by content hash. |
| 372 | pub fn get_session_manifest( |
no test coverage detected