Open the repository database for this request. The caller drops the handle when done; the gate guarantees exclusivity within this process. `open_existing_wait` skips the table-init write transaction (the repository exists — the daemon never bootstraps) and gives an external short-lived writer the open grace before failing.
(&self)
| 98 | /// (the repository exists — the daemon never bootstraps) and gives an |
| 99 | /// external short-lived writer the open grace before failing. |
| 100 | pub fn repository(&self) -> Result<Repository, Status> { |
| 101 | Repository::open_existing_wait(&self.root, database_open_wait()).map_err(|error| { |
| 102 | domain_status( |
| 103 | ErrorCode::Repository, |
| 104 | format!( |
| 105 | "failed to open repository at {}: {error}", |
| 106 | self.root.display() |
| 107 | ), |
| 108 | ) |
| 109 | }) |
| 110 | } |
| 111 | |
| 112 | /// Enter an explicit working-copy boundary inside the blocking request. |
| 113 | /// The caller retains the returned transaction for the whole operation; |
no test coverage detected