MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / read_legacy_current_view

Method read_legacy_current_view

atomic-repository/src/repository/mod.rs:1393–1406  ·  view source on GitHub ↗
(
        working_copy_dot_dir: &Path,
        common_dot_dir: &Path,
    )

Source from the content-addressed store, hash-verified

1391 }
1392
1393 fn read_legacy_current_view(
1394 working_copy_dot_dir: &Path,
1395 common_dot_dir: &Path,
1396 ) -> Result<String, RepositoryError> {
1397 if let Some(view) = Self::read_current_view_if_present(working_copy_dot_dir)? {
1398 return Ok(view);
1399 }
1400 if working_copy_dot_dir != common_dot_dir {
1401 if let Some(view) = Self::read_current_view_if_present(common_dot_dir)? {
1402 return Ok(view);
1403 }
1404 }
1405 Ok(DEFAULT_STACK.to_string())
1406 }
1407
1408 /// Write the current view as a derived compatibility artifact.
1409 fn write_current_view(&self, view: &str) -> Result<(), RepositoryError> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected