Artifact 8ffcd7910465802ff60bf5d6ab6fa6ed9ca5aa5155e9c79184562bdef199aa57:
- File
test/corpus/remote/grown-e8decf68264d
— part of check-in
[2d73c831f4]
at
2026-11-16 18:00:10
on branch trunk
— An accepted upstream update can be undone, and merges use the recorded base
suit upstream NAME undo reverses the last accept by a new check-in on trunk. Every file that accept changed goes back to what it was, the record upstreams/NAME goes back to the check-in accepted before (or is removed), and the upstream is waiting for review again. History is not rewritten. A file edited on trunk since the accept is a conflict: the command lists it and changes nothing. Undo twice walks back two accepts. An undo is never followed by an automatic accept.
The merge base for an upstream is now the branch check-in the record names, or trunk's first check-in when there is no record, and no longer what the library infers from ancestry. The dry run, the merge and suit's own check for deleted files all use that one base. Because of it:
- the same update can be accepted again after an undo, and gives exactly the files it gave before; - a newer take accepted after an undo brings all of its content, not only its difference from the undone one; - after accept --mine, a later update that leaves the settled lines alone merges cleanly, where it could conflict again before. One that changes them again is a conflict, as it should be.
A take no longer mistakes a file an undo brought back for one of the owner's own. The settle writer restores a file's mode as well as its bytes.
Left: a record edited by hand to name a check-in that is not on the branch makes accept fall back to the library's common ancestor.
159 new store cases, among them the undo story both ways, undo across two machines, and undo in the fault sweep.
1473 unit checks, 620 shell cases, 1153 store cases (was 994), 846 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (44 minutes). 100% coverage in all 26 source files. One existing line changed: the fault sweep's list gained undo. (user: dmestas, size: 30) [annotate] [blame] [check-ins using]
m________________ http://6/08