{"draft":null,"from":170,"to":318,"files":[{"path":"src/engine/test/state-source.test.ts","added":14,"removed":7,"diff":"--- a/src/engine/test/state-source.test.ts\n+++ b/src/engine/test/state-source.test.ts\n@@ -47,6 +47,7 @@\n \t}\n });\n \n+// The line-by-line layout, which a graph adopted before packed file history still uses (packFiles: false).\n test(\"current visibility stops at the first included deletion while history retains every deleter\", () => {\n \tclass ObservedStorage extends SqlState {\n \t\tpageReads = 0;\n@@ -59,7 +60,7 @@\n \ttry {\n \t\tconst oracle = Repo.init({ \"a.txt\": \"gone\\nlive\\n\" });\n \t\tconst deletion = oracle.draft({ edits: [{ file: \"a.txt\", old: \"gone\\n\", new: \"\" }] });\n-\t\tconst graph = new Graph({ storage });\n+\t\tconst graph = new Graph({ storage, packFiles: false });\n \t\tgraph.add(oracle.graph.atom(\"a0\"));\n \t\tconst ids = [\"a0\"];\n \t\tfor (let seq = 1; seq <= 514; seq++) {\n@@ -68,7 +69,7 @@\n \t\t\toracle.graph.add(atom);\n \t\t\tids.push(atom.id);\n \t\t}\n-\t\tconst reopened = new Graph({ storage });\n+\t\tconst reopened = new Graph({ storage, packFiles: false });\n \t\tconst membership = new StableOverlaySet(ids);\n \t\tconst view = new View(reopened, membership);\n \t\tstorage.pageReads = 0;\n@@ -479,9 +480,9 @@\n \t\t\t}\n \t\t\tconst before = oracle.view().text(\"a.txt\");\n \t\t\toracle.edit({ edits: [{ file: \"a.txt\", old: before, new: \"live\\n\" }] });\n-\t\t\tconst graph = new Graph({ storage });\n+\t\t\tconst graph = new Graph({ storage, packFiles: false });\n \t\t\tfor (const id of oracle.shared) graph.add(oracle.graph.atom(id));\n-\t\t\tconst reopened = new Graph({ storage });\n+\t\t\tconst reopened = new Graph({ storage, packFiles: false });\n \t\t\treopened.eachChildN = () => {\n \t\t\t\tthrow Error(\"unordered child collection forbidden\");\n \t\t\t};\n@@ -540,14 +541,20 @@\n \tconst storage = new SqlState();\n \ttry {\n \t\tconst oracle = Repo.init({ \"a.txt\": \"one\\n\" });\n-\t\tconst graph = new Graph({ storage });\n+\t\tconst graph = new Graph({ storage, packFiles: false });\n \t\tgraph.add(oracle.graph.atom(\"a0\"));\n \t\tstorage.remove(\"ordered-children\", \"format\");\n-\t\tassert.throws(() => new View(new Graph({ storage }), new StableOverlaySet([\"a0\"])).text(\"a.txt\"), /fresh adoption/);\n \t\tassert.throws(\n-\t\t\t() => new Graph({ storage }).add(oracle.draft({ edits: [{ file: \"a.txt\", old: \"one\", new: \"two\" }] })),\n+\t\t\t() => new View(new Graph({ storage, packFiles: false }), new StableOverlaySet([\"a0\"])).text(\"a.txt\"),\n \t\t\t/fresh adoption/,\n \t\t);\n+\t\tassert.throws(\n+\t\t\t() =>\n+\t\t\t\tnew Graph({ storage, packFiles: false }).add(\n+\t\t\t\t\toracle.draft({ edits: [{ file: \"a.txt\", old: \"one\", new: \"two\" }] }),\n+\t\t\t\t),\n+\t\t\t/fresh adoption/,\n+\t\t);\n \t\tstorage.write(\"ordered-children\", \"format\", 2);\n \t\tconst parent = graph.startCodeOf(\"a.txt\")!;\n \t\tstorage.remove(\"ordered-children\", JSON.stringify([String(parent), \"meta\"]));"}],"unmatched":[]}