Skip to main content

reconciled_record

Function reconciled_record 

Source
pub fn reconciled_record(
    a: &Record,
    b: &Record,
    body: Body,
    author: Identity,
    origin_system: &str,
    cap: usize,
) -> Record
Expand description

The record reconciling two diverged live records a and b into merged body (spec §3.4, §3.5): revision max(counter) + 1 over body, parent = the higher-counter side, labels and links unioned, both chains folded. On a label-key collision b wins, and on a counter tie the parent is a. Sync calls this with (a, b); pull calls it with (local, remote).