diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-08-01 14:19:09 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-08-01 15:30:18 +0300 |
commit | 7dae91d21285265554f937db9b0b677624889bde (patch) | |
tree | 9765d26bcedb59dce3a6dbc3f9a0e0e749f05f93 /obnamlib/plugins/forget_plugin.py | |
parent | 8cef27a5693e3031915ee86887b6544c5e662f5a (diff) | |
download | obnam-7dae91d21285265554f937db9b0b677624889bde.tar.gz |
Redefine commit_* to NOT unlock
Update all callers to call unlock_foo after every commit_foo. Add
tests to check that commit_* do not unlock. Fix some tests that were
meaningless. Change commit_* implementations to not unlock.
This allows us to commit, then continue, e.g., for forget or backup
checkpoints. The checkpoints still unlock and re-lock, however, due to
tests failing otherwise, indicating a problem elswewhere.
Diffstat (limited to 'obnamlib/plugins/forget_plugin.py')
-rw-r--r-- | obnamlib/plugins/forget_plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/plugins/forget_plugin.py b/obnamlib/plugins/forget_plugin.py index 81b43453..a698d177 100644 --- a/obnamlib/plugins/forget_plugin.py +++ b/obnamlib/plugins/forget_plugin.py @@ -87,8 +87,8 @@ class ForgetPlugin(obnamlib.ObnamPlugin): # Commit or unlock everything. self.repo.commit_client(client_name) self.repo.commit_chunk_indexes() - self.repo.remove_unused_chunks() self.repo.unlock_everything() + self.repo.remove_unused_chunks() self.app.dump_memory_profile('after committing') self.repo.close() |