(&self, repo_id: RepoId, topic_id: &ExternalId)
| 313 | } |
| 314 | |
| 315 | pub fn topic_path(&self, repo_id: RepoId, topic_id: &ExternalId) -> Result<Option<TopicPath>> { |
| 316 | let topic_oid = self.repo(repo_id)?.topic_oid(&self.timespec, topic_id)?; |
| 317 | |
| 318 | if let Some(commit) = topic_oid { |
| 319 | return Ok(Some(TopicPath { |
| 320 | topic_oid: commit, |
| 321 | topic_id: topic_id.to_owned(), |
| 322 | repo_id, |
| 323 | })); |
| 324 | } |
| 325 | |
| 326 | Ok(None) |
| 327 | } |
| 328 | |
| 329 | fn repo(&self, repo_id: RepoId) -> Result<core::Repo> { |
| 330 | core::Repo::ensure(&self.root, repo_id) |
no test coverage detected