From 857c5635dd0eb7d4ffa5ba183b660626d4bd2afe Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 22 May 2018 17:18:38 +0200 Subject: [PATCH] fixup: output stats in dry-run mode it will just show nothing was deleted, but one sees how it would look like. this is also for consistency with borg prune --dry-run --stats, which behaves the same. --- src/borg/archiver.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 4129de2de..c43ccb43a 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -1279,12 +1279,12 @@ class Archiver: manifest.write() repository.commit(save_space=args.save_space) cache.commit() - if args.stats: - log_multi(DASHES, - STATS_HEADER, - stats.summary.format(label='Deleted data:', stats=stats), - str(cache), - DASHES, logger=logging.getLogger('borg.output.stats')) + if args.stats: + log_multi(DASHES, + STATS_HEADER, + stats.summary.format(label='Deleted data:', stats=stats), + str(cache), + DASHES, logger=logging.getLogger('borg.output.stats')) return self.exit_code