diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-02-25 19:03:15 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-02-25 19:03:15 +0000 |
commit | e7ed28b3902f1785c66c90d1279eb9b9f18f2e46 (patch) | |
tree | 22b83299b409f1b31b001ce411a251d7b7cb5817 /obnamlib/plugins/forget_plugin.py | |
parent | 5461aad38927d398531c9b77fe73c862344bc324 (diff) | |
download | obnam-e7ed28b3902f1785c66c90d1279eb9b9f18f2e46.tar.gz |
Add commit_shared and related changes to how locking happens
Fixes everywhere.
Diffstat (limited to 'obnamlib/plugins/forget_plugin.py')
-rw-r--r-- | obnamlib/plugins/forget_plugin.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/obnamlib/plugins/forget_plugin.py b/obnamlib/plugins/forget_plugin.py index a7d7ed85..8102635e 100644 --- a/obnamlib/plugins/forget_plugin.py +++ b/obnamlib/plugins/forget_plugin.py @@ -41,6 +41,7 @@ class ForgetPlugin(obnamlib.ObnamPlugin): self.repo = self.app.open_repository() self.repo.lock_client(self.app.settings['client-name']) + self.repo.lock_shared() self.app.dump_memory_profile('at beginning') if args: @@ -72,6 +73,7 @@ class ForgetPlugin(obnamlib.ObnamPlugin): self.app.dump_memory_profile('after removing %s' % genid) self.repo.commit_client() + self.repo.commit_shared() self.app.dump_memory_profile('after committing') self.repo.fs.close() self.app.ts.finish() |