joaomarcos
dd8c0c7be8
fix(checkpoints): include pre-v2 shadow repos in orphan preview
...
store_status()["projects"] only ever covered v2 metadata, so the
`hermes checkpoints prune` confirmation prompt was blind to pre-v2
base/<hash>/HEAD shadow repos that prune_checkpoints() deletes
separately via shutil.rmtree — a pre-v2-only or mixed store could
lose checkpoint history without ever hitting the confirmation.
Extract the pre-v2 scan into _pre_v2_shadow_repos() and have both
store_status() (preview, new pre_v2_projects key) and
prune_checkpoints() (deletion) read from it, so the CLI prompt can
no longer diverge from what actually gets removed.
Addresses review from egilewski on #69141 .
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-07-24 16:01:06 -07:00
..
2026-07-24 11:45:57 -07:00
2026-07-24 11:45:57 -07:00
2026-07-17 04:53:38 -07:00
2026-07-21 12:04:47 -07:00
2026-07-24 15:55:08 -07:00
2026-07-17 04:52:02 -07:00
2026-07-03 03:27:47 -07:00
2026-07-03 03:27:47 -07:00
2026-07-01 05:04:41 -07:00
2026-07-24 11:45:57 -07:00
2026-06-21 17:46:38 +05:30
2026-07-24 16:01:06 -07:00
2026-07-22 23:25:13 -05:00
2026-06-19 07:34:02 -07:00
2026-07-02 03:00:59 -07:00
2026-07-23 07:33:36 -07:00
2026-06-22 06:42:30 -07:00
2026-07-20 09:21:08 -07:00
2026-07-24 13:37:04 +10:00
2026-07-02 04:20:43 -07:00
2026-06-25 13:52:06 -07:00
2026-07-23 11:55:17 -07:00
2026-07-20 06:50:31 -07:00
2026-07-22 12:13:01 -05:00
2026-07-07 02:40:04 -07:00
2026-07-01 14:37:22 +05:30
2026-07-23 18:20:24 -07:00
2026-07-14 17:09:40 +05:30
2026-07-16 00:18:38 -07:00
2026-07-22 12:13:01 -05:00
2026-07-01 17:48:32 +05:30
2026-07-05 13:51:26 -07:00
2026-07-14 02:59:39 +05:30
2026-07-05 00:47:54 -07:00
2026-07-06 04:58:42 -07:00
2026-07-23 11:55:17 -07:00
2026-07-24 11:45:57 -07:00
2026-07-17 04:50:47 -07:00
2026-07-17 04:50:47 -07:00
2026-07-17 04:50:47 -07:00
2026-07-18 04:15:13 -07:00
2026-07-24 15:47:12 -07:00
2026-07-24 15:58:01 -07:00
2026-07-22 12:13:01 -05:00
2026-07-13 02:42:18 -07:00
2026-07-24 15:59:02 -07:00
2026-06-25 16:40:27 -05:00
2026-06-13 14:42:51 -07:00
2026-07-02 03:00:59 -07:00
2026-07-13 18:14:15 -04:00
2026-07-07 02:52:17 -07:00
2026-07-23 12:01:24 -07:00
2026-07-22 16:59:09 -07:00
2026-07-24 07:54:21 -07:00
2026-06-25 22:03:02 -07:00
2026-07-12 02:59:27 -07:00
2026-07-24 11:45:57 -07:00
2026-07-22 16:51:01 -04:00
2026-07-24 07:54:21 -07:00
2026-07-23 08:33:55 -07:00
2026-07-01 01:05:28 -07:00
2026-07-24 11:45:57 -07:00
2026-07-22 06:56:53 -07:00
2026-06-30 16:39:41 -07:00
2026-07-24 15:47:12 -07:00
2026-07-22 17:53:06 -05:00
2026-07-24 15:47:12 -07:00
2026-07-24 10:37:29 -07:00
2026-07-14 02:59:39 +05:30
2026-07-23 11:44:43 -07:00
2026-07-24 11:45:57 -07:00
2026-07-10 19:14:06 +05:30
2026-07-04 15:08:49 -07:00
2026-07-23 21:06:47 -07:00
2026-07-17 11:37:25 +05:30
2026-06-29 21:11:58 -07:00