╭ changed ────╮ │src/patch.zig│ ╰─────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────╮ │ 7 const rf = xit.ref; │ │ 8 const mrg = xit.merge; │ │ 9 const find = @import("find.zig"); │ │10 -const cms = @import("search_commit.zig"); │ │10 +const srch_cmmt = @import("search_commit.zig"); │ │11 const fork = @import("fork.zig"); │ │12 const serve_common = @import("serve_common.zig");│ │13 │ ╰─────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │14 // the action a patch merge records │ │15 pub const merge_undo_action = "haxy/merge"; │ │16 + │ │17 +// the action a mergeability recheck records │ │18 +pub const mergeability_undo_action = "haxy/mergeability"; │ │19 │ │20 // progress is optional and best effort: a failed report must not fail a refresh │ │21 fn reportProgress(comptime repo_opts: rp.RepoOpts(.xit), io: std.Io, progress_ctx_maybe: ?repo_opts.ProgressCtx, event: rp.ProgressEvent) void {│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │597 var moment = try DB.HashMap(.read_write).init(cursor.*); │ │598 const state = Repo.State(.read_write){ .core = ctx.core, .extra = .{ .moment = &moment } }; │ │599 if (!try ctx.checks.update(state, ctx.io, ctx.allocator)) return error.CancelTransaction; │ │600 + │ │601 + // name the transaction, which no user action owns │ │602 + try xit.undo.write(repo_opts, state, std.Io.Timestamp.now(ctx.io, .real).toSeconds(), .{ .custom = .{ .action_kind = mergeability_undo_action } });│ │603 } │ │604 }; │ │605 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │1166 find.refresh(repo_opts, io, allocator, target_repo) catch |err| { │ │1167 std.log.warn("failed to refresh file index: {s}", .{@errorName(err)}); │ │1168 }; │ │1163 - cms.refresh(repo_opts, io, allocator, target_repo, null) catch |err| { │ │1169 + srch_cmmt.refresh(repo_opts, io, allocator, target_repo, null) catch |err| {│ │1170 std.log.warn("failed to refresh commit index: {s}", .{@errorName(err)});│ │1171 }; │ │1172 } │ ╰──────────────────────────────────────────────────────────────────────────────────────╯