Versions 2 to 318
new file, 206 lines
1+// A version without others: the files of one version of shared with some earlier versions left out. A read:
2+// shared and its log never change. Refused, naming the chain, when a version kept builds on one left out.
3+
8+
10+
18+
19+/** ann publishes v1 (a.ts), bob v2 (b.ts), cat v3 (a new c.ts): three versions that don't build on each other. */
28+
38+
39+test("leaving out an independent version takes only its change out; the others stay as they are", () => {
47+ assert.deepEqual(answer.files, [{ path: "a.ts", before: "one\nTWO\nthree\n", after: "one\ntwo\nthree\n" }]);
50+ treeHash({ files: { "a.ts": "one\ntwo\nthree\n", "b.ts": "alpha\nBETA\n", "c.ts": "gamma\n" } }),
54+ assert.deepEqual(project.files(), { "a.ts": "one\nTWO\nthree\n", "b.ts": "alpha\nBETA\n", "c.ts": "gamma\n" });
71+
86+
87+test("leaving out a version a kept one builds on is refused, with the chain, the files and the wider set", () => {
104+ { version: 5, agent: "bob", message: "Louder still", needs: [{ version: 4, files: ["a.ts"] }] },
113+ assert.deepEqual(wider.files, [{ path: "a.ts", before: "one\nTWO!!\nthree\n", after: "one\ntwo\nthree\n" }]);
117+
118+test("a deletion left out brings the lines back; a rename left out keeps the old name; a move left out puts lines back", () => {
128+
154+
179+
- MCP
- compare on this site's /mcp
- CLI
- abso diff 2 318 worker/project/test/without.test.ts --json
- JSON
- /christopher/abso-core/compare/2..318?file=worker%2Fproject%2Ftest%2Fwithout.test.ts&format=json