e2124037124f
say 1 save, not 1 saves, in steal's fetched, brought-in and up-to-date lines (3.2.23)
- time
- 2026-09-29 15:37 UTC · 2 weeks ago
- machine
- Junes-MacBook-Pro.local
- agent
- claude-opus-5-5
- session
- fix steal save-count plurals
- parent
- c8506f27a079
↓ koh-e2124037.tar.gzatlas at this save
files changed4 files
VERSION+1 −1src/cli/cmd_steal.v+4 −4tests/cli_test.v+3 −1v.mod+1 −1src/cli/cmd_steal.v+4 −4
@@ -117,13 +117,13 @@117117 }118118 if report.forward {119119 if guided {120- ok('${report.repo} is up to date · ${report.fetched_saves} new saves')120+ ok('${report.repo} is up to date · ${fmt.plural(report.fetched_saves, 'new save')}')121121 } else {122- ok('brought in ${report.fetched_saves} saves from "${report.repo}" — head is now [${report.head}]')122+ ok('brought in ${fmt.plural(report.fetched_saves, 'save')} from "${report.repo}" — head is now [${report.head}]')123123 }124124 } else {125125 ok(if !guided {126- 'brought in ${report.fetched_saves} saves from "${report.repo}"'126+ 'brought in ${fmt.plural(report.fetched_saves, 'save')} from "${report.repo}"'127127 } else if read_only || offer_failed {128128 'combined'129129 } else {@@ -490,7 +490,7 @@490490 return 0491491 }492492 ok('fetched "${name}" into ${target}')493- note('${fetched.saves.len} saves at [${fetched.head}]')493+ note('${fmt.plural(fetched.saves.len, 'save')} at [${fetched.head}]')494494 if source != '' {495495 note('read-only: this copy keeps up with ${source} — sign in with "koh remote ${exchange.source_host(source)}" to make it yours')496496 }tests/cli_test.v+3 −1
@@ -1166,7 +1166,9 @@11661166 write(a, 'local-only.txt', 'base\n')11671167 assert run_home(a, home, 'remote', 'folder', remote).code == 011681168 assert run_home(a, home, 'save', 'base').code == 01169- assert run_home(b_parent, home, 'steal', 'proj').code == 01169+ fetched := run_home(b_parent, home, 'steal', 'proj')1170+ assert fetched.code == 01171+ assert fetched.out.contains('1 save at'), fetched.out11701172 b := os.join_path(b_parent, 'proj')11711173 11721174 write(b, 'dirty.txt', 'mine\n')v.mod+1 −1
@@ -1,6 +1,6 @@11 Module {22 name: 'koh3'3- version: '3.2.22'3+ version: '3.2.23'44 description: 'One SQLite file per repo, one line of history.'55 license: 'MIT'66 }