The persistent repository ID for this daemon: a blake3 digest of the canonical root. Slice limitation: RFC D3 wants IDs assigned at init and recorded in `.atomic` so they survive daemon restarts and follow the repository across daemons; a path digest is stable across restarts of the same layout and unambiguous locally.
(&self)
| 69 | /// the repository across daemons; a path digest is stable across |
| 70 | /// restarts of the same layout and unambiguous locally. |
| 71 | pub fn repository_id(&self) -> Vec<u8> { |
| 72 | blake3::hash(self.root.to_string_lossy().as_bytes()) |
| 73 | .as_bytes() |
| 74 | .to_vec() |
| 75 | } |
| 76 | |
| 77 | /// The current view, read from the `.atomic/current_view` marker WITHOUT |
| 78 | /// opening any database (ResolveRepository is a lookup, not a storage |
no test coverage detected