Creates a delete/modify conflict.
(deleted: ConflictEntity, modified: ConflictEntity)
| 278 | |
| 279 | /// Creates a delete/modify conflict. |
| 280 | pub fn delete_modify(deleted: ConflictEntity, modified: ConflictEntity) -> Self { |
| 281 | Self { |
| 282 | kind: ConflictKind::DeleteModify, |
| 283 | description: format!("Entity {} deleted while {} was modified", deleted, modified), |
| 284 | entity: deleted, |
| 285 | other_entity: modified, |
| 286 | resolved: false, |
| 287 | resolution: None, |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | /// Creates a duplicate path conflict. |
| 292 | pub fn duplicate_path(path: String, trunk1: TrunkId, trunk2: TrunkId) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected