Álvaro Tejero Cantero eb344d4e78
📎 Cover the auto-repair of a branch save
A branch derives its data from its merge base and op log, so a save
that repairs pre-existing damage (penpot#12524) must record the
repair changes in the op log, ahead of the client's changes.

The new test inherits frame damage from main through the merge base,
saves on the branch, and checks five things. The op log row equals
the repair changes followed by the client's changes. A reload of the
branch shows the repaired state, and a second save needs no repair.
The repair snapshot of the branch, which has no data row of its own,
is readable and keeps the damage. The branch diff lists the repaired
shape, and the merge into main succeeds.

Dropping the repair changes from the op log fails four of these
assertions.

AI-assisted-by: claude-opus-5-5
Signed-off-by: Álvaro Tejero Cantero <alvorithm@teje.ro>
2026-11-03 12:53:27 +01:00
..
2026-11-03 12:47:08 +01:00
2026-11-03 12:47:08 +01:00
2026-11-03 12:53:27 +01:00
2026-10-07 10:41:29 +02:00
2026-10-29 15:43:06 +01:00
2024-05-29 19:05:04 +02:00