MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / merge

Method merge

atomic-repository/src/apply/types.rs:253–262  ·  view source on GitHub ↗

Merge stats from another operation.

(&mut self, other: InsertStats)

Source from the content-addressed store, hash-verified

251
252 /// Merge stats from another operation.
253 pub fn merge(&mut self, other: InsertStats) {
254 self.changes_applied += other.changes_applied;
255 self.atoms_processed += other.atoms_processed;
256 self.conflicts_detected += other.conflicts_detected;
257 self.dependencies_applied += other.dependencies_applied;
258 self.applied_hashes.extend(other.applied_hashes);
259 if other.conflict_summary.is_some() {
260 self.conflict_summary = other.conflict_summary;
261 }
262 }
263}
264
265// ── InsertOutcome ────────────────────────────────────────────────────

Callers 2

insert_change_recMethod · 0.45
test_insert_stats_mergeFunction · 0.45

Calls 1

extendMethod · 0.80

Tested by 1

test_insert_stats_mergeFunction · 0.36