Public: anyone can read this; the crew can change it.

fork-follow-history: the history fork does not follow, so only the test's own takes move it #17288

opened this

Merged 42h 43m ago, live in production

fix/follow-history-ff-race → main 0 commits

  • Merged. fix/follow-history-ff-race was merged into main as 72abacc.

Review

Sign in to review this change.
1 file changed +5 −0
test/fork-follow-history.test.ts +5
@@ -89,6 +89,11 @@ let hist: Repo;
8989
9090 test("the history: a first follow takes nothing new, a second takes upstream's two commits", async () => {
9191 hist = must(await forkRepo(app, carol, fresh(parent), "game-hist", { visibility: "public" }));
92 // Every follow here is the test's own take. A fork that follows is also fast-forwarded on each
93 // push to its parent, in the background (`core/following.ts`): racing the take, it took h1 and h2
94 // one at a time, two merges of one commit, and the take found nothing (2026-12-01, five checks,
95 // "Expected: 2, Received: 1"). Not following, it is moved only by what it is asked to take.
96 setForkFollowMode(app.db, hist.id, "dont-follow");
9297 must(await takeOrTell(app, carol, fresh(hist)));
9398 await commit(alice, parent, "h1.txt", "1\n");
9499 await commit(alice, parent, "h2.txt", "2\n");

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs