summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/show_plugin.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-04-13 20:15:33 +0100
committerLars Wirzenius <liw@liw.fi>2012-04-13 20:15:33 +0100
commita78fd4ccfddf80c1e393cf5e23d90f12dec2730c (patch)
tree3912e08acb053fa55cde8256a91deb71dcd1b47a /obnamlib/plugins/show_plugin.py
parentda69875316a7122f7733e12860205ea5aaa85c99 (diff)
downloadobnam-a78fd4ccfddf80c1e393cf5e23d90f12dec2730c.tar.gz
Make "obnam ls" obey --generation if no args given on command line
Diffstat (limited to 'obnamlib/plugins/show_plugin.py')
-rw-r--r--obnamlib/plugins/show_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/plugins/show_plugin.py b/obnamlib/plugins/show_plugin.py
index 50f0618b..44b2d3d6 100644
--- a/obnamlib/plugins/show_plugin.py
+++ b/obnamlib/plugins/show_plugin.py
@@ -129,7 +129,7 @@ class ShowPlugin(obnamlib.ObnamPlugin):
def ls(self, args):
'''List contents of a generation.'''
self.open_repository()
- for gen in args or ["latest"]:
+ for gen in args or [self.app.settings['generation']] or ["latest"]:
gen = self.repo.genspec(gen)
started, ended = self.repo.client.get_generation_times(gen)
started = self.format_time(started)