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

Method duplicate_path

atomic-core/src/crdt/apply/conflict.rs:292–301  ·  view source on GitHub ↗

Creates a duplicate path conflict.

(path: String, trunk1: TrunkId, trunk2: TrunkId)

Source from the content-addressed store, hash-verified

290
291 /// Creates a duplicate path conflict.
292 pub fn duplicate_path(path: String, trunk1: TrunkId, trunk2: TrunkId) -> Self {
293 Self {
294 kind: ConflictKind::DuplicatePath,
295 description: format!("Path {:?} claimed by both {} and {}", path, trunk1, trunk2),
296 entity: ConflictEntity::Trunk(trunk1),
297 other_entity: ConflictEntity::Trunk(trunk2),
298 resolved: false,
299 resolution: None,
300 }
301 }
302
303 // Accessors
304

Callers

nothing calls this directly

Calls 1

TrunkClass · 0.85

Tested by

no test coverage detected