Skip to content

Fix information about schnapps cleanup --compare

Lukas Jelinek requested to merge schnapps-cleanup-compare into master

It fixes the information about the cleanup --compare behavior. In case of multiple identical snapshots (no changes between them), it deletes the previous one(s) and not the next one(s) - in other words, only the last snapshot of the given state is retained. Inspired by this forum post.

See this example (there are no changes between snapshots 327 and 330):

 * checking snaphot 326...
 * checking snaphot 327...
 * checking snaphot 328...
   - Snapshot 327 deleted.
 * checking snaphot 329...
   - Snapshot 328 deleted.
 * checking snaphot 330...
   - Snapshot 329 deleted.

The snapshots 327, 328, and 329 ale deleted and 330 is kept.

Related to schnapps!46.

Merge request reports