Lines 47–53 at 318 (were 47–52 at 175)
50+// The line-by-line layout, which a graph adopted before packed file history still uses (packFiles: false). 5051test("current visibility stops at the first included deletion while history retains every deleter", () => { 5152 class ObservedStorage extends SqlState { Lines 60–66 at 318 (were 59–65 at 175)
6061 const oracle = Repo.init({ "a.txt": "gone\nlive\n" }); 6162 const deletion = oracle.draft({ edits: [{ file: "a.txt", old: "gone\n", new: "" }] }); 62− const graph = new Graph({ storage });
63+ const graph = new Graph({ storage, packFiles: false }); 6364 graph.add(oracle.graph.atom("a0")); 6566 for (let seq = 1; seq <= 514; seq++) { Lines 69–75 at 318 (were 68–74 at 175)
6869 oracle.graph.add(atom); 71− const reopened = new Graph({ storage });
72+ const reopened = new Graph({ storage, packFiles: false }); 7273 const membership = new StableOverlaySet(ids); 7374 const view = new View(reopened, membership); 7475 storage.pageReads = 0; Lines 480–488 at 318 (were 479–487 at 175)
480481 const before = oracle.view().text("a.txt"); 481482 oracle.edit({ edits: [{ file: "a.txt", old: before, new: "live\n" }] }); 482− const graph = new Graph({ storage });
483+ const graph = new Graph({ storage, packFiles: false }); 483484 for (const id of oracle.shared) graph.add(oracle.graph.atom(id)); 484− const reopened = new Graph({ storage });
485+ const reopened = new Graph({ storage, packFiles: false }); 485486 reopened.eachChildN = () => { 486487 throw Error("unordered child collection forbidden"); Lines 541–560 at 318 (were 540–553 at 175)
540541 const storage = new SqlState(); 542543 const oracle = Repo.init({ "a.txt": "one\n" }); 543− const graph = new Graph({ storage });
544+ const graph = new Graph({ storage, packFiles: false }); 544545 graph.add(oracle.graph.atom("a0")); 545546 storage.remove("ordered-children", "format"); 546− assert.throws(() => new View(new Graph({ storage }), new StableOverlaySet(["a0"])).text("a.txt"), /fresh adoption/);
548− () => new Graph({ storage }).add(oracle.draft({ edits: [{ file: "a.txt", old: "one", new: "two" }] })),
548+ () => new View(new Graph({ storage, packFiles: false }), new StableOverlaySet(["a0"])).text("a.txt"), 553+ new Graph({ storage, packFiles: false }).add( 554+ oracle.draft({ edits: [{ file: "a.txt", old: "one", new: "two" }] }), 551558 storage.write("ordered-children", "format", 2); 552559 const parent = graph.startCodeOf("a.txt")!; 553560 storage.remove("ordered-children", JSON.stringify([String(parent), "meta"]));