Skip to content

simplify prune#9427

Merged
ThomasWaldmann merged 2 commits intoborgbackup:masterfrom
ThomasWaldmann:simplify-prune
Mar 2, 2026
Merged

simplify prune#9427
ThomasWaldmann merged 2 commits intoborgbackup:masterfrom
ThomasWaldmann:simplify-prune

Conversation

@ThomasWaldmann
Copy link
Member

Description

Simplify borg prune, making it more similar to borg delete.

Checklist

  • PR is against master (or maintenance branch if only applicable there)
  • New code has tests and docs where appropriate
  • Tests pass (run tox or the relevant test subset)
  • Commit messages are clean and reference related issues

similar to what borg delete does.

also:
- remove "uncommitted" counter, we do not use commits anymore
- always call manifest.write() if we deleted something
@codecov
Copy link

codecov bot commented Mar 2, 2026

Codecov Report

❌ Patch coverage is 83.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.52%. Comparing base (a4fbf7c) to head (ec9e32a).
⚠️ Report is 16 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/borg/archiver/prune_cmd.py 83.33% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9427      +/-   ##
==========================================
- Coverage   76.53%   76.52%   -0.01%     
==========================================
  Files          85       85              
  Lines       14824    14819       -5     
  Branches     2214     2214              
==========================================
- Hits        11345    11340       -5     
  Misses       2802     2802              
  Partials      677      677              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ThomasWaldmann ThomasWaldmann merged commit f86c590 into borgbackup:master Mar 2, 2026
19 checks passed
@ThomasWaldmann ThomasWaldmann deleted the simplify-prune branch March 2, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant