diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-29 12:30:50 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-29 12:30:50 +0000 |
commit | ab9bd1346af936085ad8d986ad17f87df374f272 (patch) | |
tree | 10e31cf7ba8b2b91a37df1390db98a3d5cc4a60a /obnamlib/plugins/show_plugin.py | |
parent | 3a92a2b1d13d54b431b1ff1de77329aa919f043c (diff) | |
download | obnam-ab9bd1346af936085ad8d986ad17f87df374f272.tar.gz |
Fix "obnam diff latest"
Add test case. Fix code.
Reported-by: Junyx
Diffstat (limited to 'obnamlib/plugins/show_plugin.py')
-rw-r--r-- | obnamlib/plugins/show_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/obnamlib/plugins/show_plugin.py b/obnamlib/plugins/show_plugin.py index 9d5604cb..ab1f4be9 100644 --- a/obnamlib/plugins/show_plugin.py +++ b/obnamlib/plugins/show_plugin.py @@ -315,7 +315,8 @@ class ShowPlugin(obnamlib.ObnamPlugin): self.open_repository() client_name = self.app.settings['client-name'] if len(args) == 1: - gen_id2 = self.repo.interpret_generation_spec(args[0]) + gen_id2 = self.repo.interpret_generation_spec( + client_name, args[0]) # Now we have the dst/second generation for show_diff. Use # genids/list_generations to find the previous generation genids = self.repo.get_client_generation_ids(client_name) |