╭ changed ─────────────╮ │src/event/PatchRev.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────╮ │25 │ │26 pub const merge_policy: evt.MergePolicy = .target_wins; │ │27 pub const record_map_key = "event-id->patchrev"; │ │28 -pub const id_set_key = "patchrev-id-set"; │ │28 +pub const all_id_set_key = "patchrev-id-set"; │ │29 │ │30 // create the mergeable squash commit represented by this patch revision│ │31 pub fn writeSquashCommit( │ ╰────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │135 try evt.indexEvent(DB, hash_kind, haxy_moment, event_id, .patchrev, existing_maybe, record); │ │136 │ │137 if (existing_cursor_maybe == null) { │ │138 - const ids = try DB.SortedSet(.read_write).init(try haxy_moment.putCursor(hash.hashInt(hash_kind, id_set_key))); │ │138 + const ids = try DB.SortedSet(.read_write).init(try haxy_moment.putCursor(hash.hashInt(hash_kind, all_id_set_key)));│ │139 try ids.put(&evt.orderKeyDesc(record.created_order, event_id)); │ │140 } │ │141 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │170 haxy_moment: DB.HashMap(.read_only), │ │171 arena: *std.heap.ArenaAllocator, │ │172 ) !?WithId { │ │173 - const ids_cursor = try haxy_moment.getCursor(hash.hashInt(hash_kind, id_set_key)) orelse return null; │ │173 + const ids_cursor = try haxy_moment.getCursor(hash.hashInt(hash_kind, all_id_set_key)) orelse return null;│ │174 const ids = try DB.SortedSet(.read_only).init(ids_cursor); │ │175 var iter = try ids.iteratorFromIndex(0); │ │176 while (try iter.next()) |cursor| { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │193 var arena = std.heap.ArenaAllocator.init(allocator); │ │194 defer arena.deinit(); │ │195 │ │196 - const ids_cursor = try haxy_moment.getCursor(hash.hashInt(hash_kind, id_set_key)) orelse return try roots.toOwnedSlice(allocator); │ │196 + const ids_cursor = try haxy_moment.getCursor(hash.hashInt(hash_kind, all_id_set_key)) orelse return try roots.toOwnedSlice(allocator);│ │197 const ids = try DB.SortedSet(.read_only).init(ids_cursor); │ │198 var iter = try ids.iteratorFromIndex(0); │ │199 while (try iter.next()) |cursor| { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯