pub struct MergeConflict {
pub object: Mrid,
pub attr: AttrId,
pub kept: Value,
pub discarded: Value,
}Expand description
Two files disagreeing about a single-valued attribute of one object.
Merging by mRID is what makes multi-profile assembly work, and for almost everything it is unambiguous: each file contributes attributes the others do not have, or repeats one with the same value. A different value for a single-valued attribute is neither — it is a defect in the model set, and one that has to be visible, because resolving it means discarding one of the two readings.
The last file read wins, so that a change file applied over a base model has the effect
its author intended. Which one that is depends on load order; that the conflict happened
does not, and is what Dataset::merge_conflicts reports.
Fields§
§object: Mrid§attr: AttrId§kept: ValueThe value now stored — the one the later file supplied.
discarded: ValueThe value the earlier file supplied, which is no longer in the model.