╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───╮ │src/push.zig│ ╰────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │143 if (null != try rf.readRecur(.xit, repo_opts, state.readOnly(), ctx.io, .{ .ref = evt.events_ref })) { │ │144 _ = try evt.consumeInTransaction(.repo, .xit, repo_opts, state, &ctx.core.db, &moment, ctx.io, ctx.allocator, evt.events_ref); │ │145 try pch.detectMerged(repo_opts, state, &ctx.core.db, &moment, ctx.io, ctx.allocator, ctx.repo_root_path, ctx.updates.items.items, ctx.error_writer);│ │146 + │ │147 + // the revisions the pushed branches cause belong to the push │ │148 + try pch.refreshBranchesInTransaction(repo_opts, state, &moment, ctx.io, ctx.allocator, ctx.updates.items.items); │ │149 } │ │150 try writeUndo(repo_opts, state, ctx.io, ctx.allocator, ctx.author); │ │151 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1347 } │ │1348 │ │1349 // stand in for a client push, which the fixture has no server to receive: one │ │1350 -// transaction moves the branch and records the action, the way receive-pack │ │1351 -// does, and the caller refreshes the affected patches after it │ │1350 +// transaction moves the branch, refreshes the patches tracking it and records │ │1351 +// the action, the way receive-pack does │ │1352 fn seedPush(io: std.Io, allocator: std.mem.Allocator, repo: *rp.Repo(.xit, .{}), author: evt.CommitAuthor) !void {│ │1353 const Repo = rp.Repo(.xit, .{}); │ │1354 const DB = Repo.DB; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1373 .timestamp = 820, │ │1374 }, null, .{ .kind = .head, .name = "feature" }); │ │1375 │ │1376 + try pch.refreshBranchesInTransaction(opts, state, &moment, ctx.io, ctx.allocator, null);│ │1377 try push.writeUndo(opts, state, ctx.io, ctx.allocator, ctx.author); │ │1378 } │ │1379 }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯