╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │590 }, │ │591 }; │ │592 } │ │593 - try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &issue_events); │ │593 + try evt.consume(.local, .repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &issue_events);│ │594 // the tip is the branch point for the conflicting edits below │ │595 const seed_tip = (try template_repo.readRef(io, evt.events_ref)) orelse unreachable; │ │596 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │670 } }, │ │671 } }; │ │672 │ │673 - try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &ours); │ │673 + try evt.consume(.local, .repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &ours);│ │674 │ │675 // consume can't root a new branch, so theirs commits by hand │ │676 var json: std.Io.Writer.Allocating = .init(allocator); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │705 try template_repo.removeBranch(io, .{ .name = other_ref.name }); │ │706 } │ │707 │ │708 - try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &.{}); │ │708 + try evt.consume(.local, .repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &.{});│ │709 │ │710 // seed a small comment tree on the newest issue │ │711 var comment_ids: [5][evt.event_id_size]u8 = undefined; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │737 } }, │ │738 }; │ │739 } │ │740 - try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &comment_events); │ │740 + try evt.consume(.local, .repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &comment_events);│ │741 │ │742 const discussion_data = [_]struct { │ │743 title: []const u8, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │784 } }, │ │785 }; │ │786 } │ │787 - try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &discussion_events); │ │787 + try evt.consume(.local, .repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &discussion_events);│ │788 │ │789 var discussion_comment_ids: [discussion_data.len][3][evt.event_id_size]u8 = undefined; │ │790 for (&discussion_comment_ids) |*ids| { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │813 } }, │ │814 }; │ │815 } │ │816 - try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &discussion_comment_events); │ │816 + try evt.consume(.local, .repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &discussion_comment_events);│ │817 try template_repo.patchAll(io, allocator, null); │ │818 try template_repo.addConfig(io, allocator, .{ .name = "core.bare", .value = "true" }); │ │819 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1073 .{ .tree = .{ .name = "base", .oid = &base_tree_oid } }, │ │1074 .{ .tree = .{ .name = "head", .oid = &head_tree_oid } }, │ │1075 }; │ │1076 - try evt.consume(.fork, .xit, .{}, io, allocator, &fork_repo, evt.events_ref, &.{.{ │ │1076 + try evt.consume(.server, .fork, .xit, .{}, io, allocator, &fork_repo, evt.events_ref, &.{.{│ │1077 .id = std.fmt.bytesToHex(revision_id, .lower), │ │1078 .timestamp = revision_timestamp, │ │1079 .author = author, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1088 const patch_record = (try evt.Patch.readById(evt.EventDB(.sha1), .sha1, moment, &arena, patch_id)) orelse return error.NotFound;│ │1089 var patch = patch_record.event; │ │1090 patch.revision = evt.Patch.Revision.fromRecord(revision_id, revision_record); │ │1091 - try evt.consume(.fork, .xit, .{}, io, allocator, &fork_repo, evt.events_ref, &.{.{ │ │1091 + try evt.consume(.server, .fork, .xit, .{}, io, allocator, &fork_repo, evt.events_ref, &.{.{ │ │1092 .id = patch_hex, │ │1093 .timestamp = revision_timestamp + 1, │ │1094 .author = author, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1225 .timestamp = timestamp + 7, │ │1226 }); │ │1227 } else if (status != .open) { │ │1228 - try evt.Patch.update(.xit, .{}, io, allocator, target_repo, &patch_ids[i], .{ .status = status }, patch_author); │ │1228 + try evt.Patch.update(.server, .xit, .{}, io, allocator, target_repo, &patch_ids[i], .{ .status = status }, patch_author);│ │1229 } │ │1230 } │ │1231 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1257 } }, │ │1258 }; │ │1259 } │ │1260 - try evt.consume(.repo, .xit, .{}, io, allocator, target_repo, evt.events_ref, &comments); │ │1260 + try evt.consume(.server, .repo, .xit, .{}, io, allocator, target_repo, evt.events_ref, &comments);│ │1261 │ │1262 // create divergent metadata edits on the next three patches │ │1263 var patch_arena = std.heap.ArenaAllocator.init(allocator); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯