╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───╮ │src/fork.zig│ ╰────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │313 if (published_patch.event.patchrev_id) |*published_revision| { │ │314 if (std.mem.eql(u8, published_revision, &revision_hex)) return; │ │315 } │ │316 - evt.consume(.xit, repo_opts, io, allocator, target_repo, evt.events_ref, &.{.{ │ │316 + evt.consume(.repo, .xit, repo_opts, io, allocator, target_repo, evt.events_ref, &.{.{│ │317 .id = id.*, │ │318 .timestamp = timestamp, │ │319 .author = author, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │385 if (revision.removed) return error.PatchNotPushed; │ │386 const metadata = existing orelse local_patch; │ │387 │ │388 - try evt.consume(.xit, repo_opts, io, allocator, target_repo, evt.events_ref, &.{.{ │ │388 + try evt.consume(.repo, .xit, repo_opts, io, allocator, target_repo, evt.events_ref, &.{.{│ │389 .id = input.id, │ │390 .timestamp = input.timestamp, │ │391 .author = input.author, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │398 } }, │ │399 }}); │ │400 │ │401 - try evt.consume(.xit, repo_opts, io, allocator, &fork_repo, evt.events_ref, &.{.{ │ │401 + try evt.consume(.fork, .xit, repo_opts, io, allocator, &fork_repo, evt.events_ref, &.{.{│ │402 .id = input.id, │ │403 .timestamp = input.timestamp, │ │404 .author = input.author, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │426 const path = try forkPath(allocator, repo_root_path, id); │ │427 defer allocator.free(path); │ │428 try std.Io.Dir.cwd().deleteTree(io, path); │ │429 - if (!record.removed) try evt.remove(.xit, evt.admin_repo_opts, io, allocator, admin_repo, &fork_id, .fork, author); │ │429 + if (!record.removed) try evt.remove(.admin, .xit, evt.admin_repo_opts, io, allocator, admin_repo, &fork_id, .fork, author);│ │430 } │ │431 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │121 // │ │122 │ │123 { │ │124 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │124 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │125 │ │126 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │127 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │160 }; │ │161 │ │162 // commit and consume the new event │ │163 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2); │ │163 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2);│ │164 │ │165 // │ │166 // rebase the branch so it no longer includes the edit event │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │203 // │ │204 │ │205 { │ │206 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │206 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │207 │ │208 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │209 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │262 // │ │263 │ │264 { │ │265 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │265 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │266 │ │267 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │268 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │377 // │ │378 │ │379 { │ │380 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │380 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │381 │ │382 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │383 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │482 // │ │483 │ │484 { │ │485 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │485 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │486 │ │487 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │488 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯