MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / merge

Method merge

document/graph-storage/src/history.rs:73–78  ·  view source on GitHub ↗

Absorb `incoming` (dedup by `Rev`) and canonically re-sort the whole combined history. The sort is deterministic (topological, ties broken by `Rev`), so two peers that absorb the same delta set produce byte-identical history, not merely two different valid orderings. This is the history-convergence mechanism: arrival order is erased. Callers update the registry separately (LWW apply is commutativ

(&mut self, incoming: impl IntoIterator<Item = Delta>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

canonical_sortMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected