Artifact 8aac8d7bbb8977db51a00eae533e0cbadfa431a95486cc84945138afe5fc6412:
- File
test/corpus/ledger/grown-1c520fc4c880
— part of check-in
[0c65a50c7f]
at
2026-11-14 00:48:47
on branch trunk
— Phase 7c-1: a wardrobe can be cloned onto a second machine, and one call tends them all
suit clone NAME URL makes a wardrobe on this machine from a remote. It clones into a temporary file, renames it into place, opens the store at the tip of trunk and records the remote last. A failure at any step removes what it made: no partial repository file, no store folder, no remotes line. A name already in use is refused with exit 20 and nothing is overwritten. A login saved beforehand is used, so a private wardrobe can be cloned.
suit tend with no name tends every wardrobe in name order. One wardrobe's failure does not stop the others; the exit code is the highest any of them returned, with one line for each that did not end clean.
After three failed syncs in a row the attention file names the wardrobe and the host. A sync that reaches the remote clears the count and the line.
A limit: libfossil's clone builds its own context, so fault injection cannot reach the system calls made inside the clone. The tests cover every step suit takes around it, and a bad remote covers a failure inside it.
One existing case changed: tend-usage expected suit tend with no name to be an error, which is now the behaviour above. It tests suit tend with two names instead.
1204 unit checks, 227 shell cases, 669 store cases, 612 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask. 100% coverage in all 22 source files. No suite has fewer cases than at the last check-in. (user: dmestas, size: 290) [annotate] [blame] [check-ins using]
link / /d dir /h/_ dir /+d/s dir /h dir /.cl link /hE / dir /! dir /.l/.m dir /hd dir /hhu dir /md dir /� dir / dir /e dir /m dir /hml dir /hd� dir /ho link /hd / dir /h~ dir /sm dir /ue dir /hod dir /uL dir /. dir /.d dir /hmd dir /c} dir /z dir /d dir /� dir /� dir /he dir /u link /h /t