summaryrefslogtreecommitdiff
path: root/obnamlib/repo_interface.py
diff options
context:
space:
mode:
authorLukáš Poláček <lukas@spotify.com>2015-07-20 16:54:24 +0200
committerLars Wirzenius <liw@liw.fi>2015-07-25 14:26:08 +0300
commit0da82b27bd07b781e441793b08c661516a33489b (patch)
treeb7b782548f3efa2b81518eae800625db0a0e4cb1 /obnamlib/repo_interface.py
parentf22994cc99017f5aeab809a406b0c5d1940fd5a8 (diff)
downloadobnam-0da82b27bd07b781e441793b08c661516a33489b.tar.gz
Add --ignore-missing-chunks option to forget
Diffstat (limited to 'obnamlib/repo_interface.py')
-rw-r--r--obnamlib/repo_interface.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/obnamlib/repo_interface.py b/obnamlib/repo_interface.py
index f16d6925..50832290 100644
--- a/obnamlib/repo_interface.py
+++ b/obnamlib/repo_interface.py
@@ -572,11 +572,14 @@ class RepositoryInterface(object):
'''Set a key/value pair for a given generation.'''
raise NotImplementedError()
- def remove_generation(self, generation_id):
+ def remove_generation(self, generation_id, ignore_missing_chunks=False):
'''Remove an existing generation.
The removed generation may be the currently unfinished one.
+ When removing chunks, don't try to remove those that are missing
+ if ignore_missing_chunks is set to True.
+
'''
raise NotImplementedError()