Versions 27 to 318
Lines 126–153 at 318 (were 126–147 at 27)
127127function makeConflict(graph: Graph, set: AtomSet | undefined, a: Atom, b: Atom, keys: ConflictKey[]): Conflict {
129− let resolvedBy: AtomId[] = [];
131− const fromA = graph.resolversOf(a.id).filter((r) => set.has(r));
132− const fromB = new Set(graph.resolversOf(b.id));
133− resolvedBy = fromA.filter((r) => fromB.has(r)).sort((p, q) => graph.atom(p).seq - graph.atom(q).seq);
137145
139−function claimersIn(graph: Graph, set: AtomSet, key: Key): AtomId[] {
140− const out: AtomId[] = [];
141− for (const list of [graph.writersOf(key), graph.readersOf(key), graph.holdersOf(key)]) {
142− for (const id of list) if (set.has(id)) out.push(id);
148+ for (const list of [graph.eachWriterOf(key), graph.eachReaderOf(key), graph.eachHolderOf(key)]) {
144− return out;
146152
Lines 207–213 at 318 (were 201–223 at 27)
204− const sequence = view.sequence(info.file);
205− const at = view.sequenceIndex(info.file, line);
206− if (at < 0) return [];
207− const out: LineId[] = [];
208− for (let i = at - 1; i >= 0; i--) {
209− if (sequence[i]!.visible) {
210− out.push(sequence[i]!.id);
211− break;
212− }
213− }
214− for (let i = at + 1; i < sequence.length; i++) {
215− if (sequence[i]!.visible) {
216− out.push(sequence[i]!.id);
217− break;
218− }
219− }
220− return out;
222212
Lines 245–251 at 318 (were 255–261 at 27)
258− for (const link of graph.togetherLinks(a)) {
Lines 292–298 at 318 (were 302–308 at 27)
304294 for (const key of draft.writes) for (const id of claimersIn(graph, set, key)) candidates.add(id);
305− for (const key of claimsOf(draft)) for (const id of graph.writersOf(key)) if (set.has(id)) candidates.add(id);
295+ for (const key of claimsOf(draft)) for (const id of graph.eachWriterOf(key)) if (set.has(id)) candidates.add(id);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 27 318 src/engine/conflicts.ts --json
- JSON
- /christopher/abso-core/compare/27..318?file=src%2Fengine%2Fconflicts.ts&format=json