summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-02-13 11:57:26 +0200
committerLars Wirzenius <liw@liw.fi>2016-02-13 11:57:26 +0200
commit96d1acdeb6fb8d69f65cdda727181ddfc8c90dae (patch)
tree4e7cd7a2ef52eecd573f53195fd0338396d22792
parent47a3b518da5549fc3806801ea18db7db4be20181 (diff)
downloadobnam-96d1acdeb6fb8d69f65cdda727181ddfc8c90dae.tar.gz
Update NEWS
-rw-r--r--NEWS5
-rw-r--r--obnamlib/plugins/forget_plugin.py5
2 files changed, 10 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index c3339d19..15400b2c 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,11 @@ not use it unless you're willing to lose your backup.
Version 1.20, released UNRELEASED
---------------------------------
+Minor changes:
+
+* Lars Wirzenius changed `obnam forget` so that if there is nothing to
+ do, it doesn't even try to connect to the repository.
+
Bug fixes:
* The manual and manual page used to claim you could break only the
diff --git a/obnamlib/plugins/forget_plugin.py b/obnamlib/plugins/forget_plugin.py
index 8faa4024..bc45ce60 100644
--- a/obnamlib/plugins/forget_plugin.py
+++ b/obnamlib/plugins/forget_plugin.py
@@ -15,6 +15,7 @@
import datetime
+import logging
import obnamlib
@@ -36,6 +37,10 @@ class ForgetPlugin(obnamlib.ObnamPlugin):
self.app.settings.require('repository')
self.app.settings.require('client-name')
+ if not args and not self.app.settings['keep']:
+ logging.info('forget: Nothing to forget, not doing anything')
+ return
+
self.setup_progress_reporting()
self.repo = self.app.get_repository_object()