╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ──────╮ │src/test/ui.zig│ ╰───────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │122 var local = try Repo.open(io, allocator, .{ .path = local_path }); │ │123 defer local.deinit(io, allocator); │ │124 const id = [_]u8{2} ** evt.event_id_size; │ │125 - try evt.consume(.git, .{}, io, allocator, &local, evt.events_ref, &.{.{ │ │125 + try evt.consume(.repo, .git, .{}, io, allocator, &local, evt.events_ref, &.{.{ │ │126 .id = std.fmt.bytesToHex(id, .lower), │ │127 .author = .{ .name = "haxy", .email = "user@haxy" }, │ │128 .event = .{ .issue = .{ .title = "local", .description = "", .tags = "" } },│ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │132 var remote = try RemoteRepo.open(io, allocator, .{ .path = remote_path }); │ │133 defer remote.deinit(io, allocator); │ │134 const id = [_]u8{3} ** evt.event_id_size; │ │135 - try evt.consume(.git, .{}, io, allocator, &remote, evt.events_ref, &.{.{ │ │135 + try evt.consume(.repo, .git, .{}, io, allocator, &remote, evt.events_ref, &.{.{ │ │136 .id = std.fmt.bytesToHex(id, .lower), │ │137 .author = .{ .name = "haxy", .email = "user@haxy" }, │ │138 .event = .{ .issue = .{ .title = "remote", .description = "", .tags = "" } },│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │143 var local = try Repo.open(io, allocator, .{ .path = local_path }); │ │144 defer local.deinit(io, allocator); │ │145 try local.removeBranch(io, .{ .name = evt.events_ref.name }); │ │146 - try evt.consume(.git, .{}, io, allocator, &local, evt.events_ref, &.{}); │ │146 + try evt.consume(.repo, .git, .{}, io, allocator, &local, evt.events_ref, &.{}); │ │147 } │ │148 try std.testing.expectEqual(null, try Events.sync(io, allocator, .{ .path = local_path, .repo_kind = .git }));│ │149 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │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 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯