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

Function name_conflict_error

atomic-repository/src/repository/content.rs:39–46  ·  view source on GitHub ↗

The error every content read returns for a path with an unresolved name conflict. Callers that classify paths first must report the same error.

(path: &str, paths: usize, claimants: usize)

Source from the content-addressed store, hash-verified

37/// The error every content read returns for a path with an unresolved name
38/// conflict. Callers that classify paths first must report the same error.
39pub fn name_conflict_error(path: &str, paths: usize, claimants: usize) -> RepositoryError {
40 RepositoryError::InvalidOperation {
41 message: format!(
42 "path '{}' has an unresolved name conflict ({} path(s), {} claimant(s)); refusing to choose content",
43 path, paths, claimants
44 ),
45 }
46}
47
48impl Repository {
49 /// Get the recorded content for a tracked file.

Callers 4

restore_contentsMethod · 0.85
restoreMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected