The current view, read from the `.atomic/current_view` marker WITHOUT opening any database (ResolveRepository is a lookup, not a storage open — CONTRACT "routing" section).
(&self)
| 78 | /// opening any database (ResolveRepository is a lookup, not a storage |
| 79 | /// open — CONTRACT "routing" section). |
| 80 | pub fn current_view(&self) -> String { |
| 81 | let path = self.root.join(".atomic").join("current_view"); |
| 82 | std::fs::read_to_string(&path) |
| 83 | .map(|content| content.trim().to_string()) |
| 84 | .unwrap_or_else(|_| "dev".to_string()) |
| 85 | } |
| 86 | |
| 87 | pub fn repository_ref(&self) -> RepositoryRef { |
| 88 | RepositoryRef { |
no outgoing calls