╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │228 } │ │229 │ │230 // commit the seed events and consume them into the database │ │231 - try evt.consume(.xit, evt.admin_repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume); │ │231 + try evt.consume(.admin, .xit, evt.admin_repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume);│ │232 │ │233 // every repo gets the same generated history, so build it once into a │ │234 // template repo and copy that to each repo's location below rather than │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │581 }, │ │582 }; │ │583 } │ │584 - try evt.consume(.xit, .{}, io, allocator, &template_repo, evt.events_ref, &issue_events); │ │584 + try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &issue_events);│ │585 // the tip is the branch point for the conflicting edits below │ │586 const seed_tip = (try template_repo.readRef(io, evt.events_ref)) orelse unreachable; │ │587 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │661 } }, │ │662 } }; │ │663 │ │664 - try evt.consume(.xit, .{}, io, allocator, &template_repo, evt.events_ref, &ours); │ │664 + try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &ours);│ │665 │ │666 // consume can't root a new branch, so theirs commits by hand │ │667 var json: std.Io.Writer.Allocating = .init(allocator); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │696 try template_repo.removeBranch(io, .{ .name = other_ref.name }); │ │697 } │ │698 │ │699 - try evt.consume(.xit, .{}, io, allocator, &template_repo, evt.events_ref, &.{}); │ │699 + try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &.{});│ │700 │ │701 // seed a small comment tree on the newest issue │ │702 var comment_ids: [5][evt.event_id_size]u8 = undefined; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │728 } }, │ │729 }; │ │730 } │ │731 - try evt.consume(.xit, .{}, io, allocator, &template_repo, evt.events_ref, &comment_events); │ │731 + try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &comment_events);│ │732 │ │733 const discussion_data = [_]struct { │ │734 title: []const u8, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │775 } }, │ │776 }; │ │777 } │ │778 - try evt.consume(.xit, .{}, io, allocator, &template_repo, evt.events_ref, &discussion_events); │ │778 + try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &discussion_events);│ │779 │ │780 var discussion_comment_ids: [discussion_data.len][3][evt.event_id_size]u8 = undefined; │ │781 for (&discussion_comment_ids) |*ids| { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │804 } }, │ │805 }; │ │806 } │ │807 - try evt.consume(.xit, .{}, io, allocator, &template_repo, evt.events_ref, &discussion_comment_events); │ │807 + try evt.consume(.repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &discussion_comment_events);│ │808 } │ │809 │ │810 // copy the template to each repo's on-disk location, named by its │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯