╭ changed ────╮ │src/event.zig│ ╰─────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────╮ │1063 io: std.Io, │ │1064 allocator: std.mem.Allocator, │ │1065 ref: rf.Ref, │ │1062 -) !bool { │ │1066 +) !?u64 { │ │1067 const DB = EventDB(repo_opts.hash); │ │1068 const read_state = state.readOnly();│ │1069 │ ╰──────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1080 const tip_hex = (try rf.readRecur(repo_kind, repo_opts, read_state, io, .{ .ref = ref })) orelse return error.OidNotFound;│ │1081 var tip: [hash.byteLen(repo_opts.hash)]u8 = undefined; │ │1082 _ = try std.fmt.hexToBytes(&tip, &tip_hex); │ │1079 - if (std.mem.eql(u8, last_object_id, &tip)) return false; │ │1083 + if (std.mem.eql(u8, last_object_id, &tip)) return error.CancelTransaction; │ │1084 } │ │1085 │ │1086 // the list with all of haxy's state, including materialized views. │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1121 │ │1122 try haxy_history.slice(moment_index + 1); │ │1123 try moment.put(hash.hashInt(repo_opts.hash, last_object_id_key), .{ .bytes = &head_oid });│ │1120 - return true; │ │1124 + return null; │ │1125 } │ │1126 │ │1127 // if this branch was rebased and force pushed, we need to detect that and │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1424 try moment.put(hash.hashInt(repo_opts.hash, last_object_id_key), .{ .bytes = last_object_id });│ │1425 } │ │1426 │ │1423 - return true; │ │1427 + return try haxy_history.count() - 1; │ │1428 } │ │1429 │ │1430 // the conflicted records of one kind, keyed by the same order key its id set │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯