Creates a duplicate path conflict.
(path: String, trunk1: TrunkId, trunk2: TrunkId)
| 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 |