diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2013-11-27 14:26:31 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2013-11-29 16:11:44 +0000 |
commit | 3eb2b658b1f3a612c78c14f3d2cba2a1f0b1333f (patch) | |
tree | 03e8cbb33e59a3cdc6d6d4db9a71631d4b50db30 /without-test-modules | |
parent | b38e47f413c6651c8953d2bebd99ae0bb80c07f9 (diff) | |
download | morph-3eb2b658b1f3a612c78c14f3d2cba2a1f0b1333f.tar.gz |
branchmanager: Allow deferred and optional cleanup on success.
Now it will optionally clean up on success based on a constructor
parameter.
It can be later cleaned up explicitly by calling close().
It is called close, rather than something more obvious, like cleanup(),
since it means the manager can be re-used with contextlib.closing().
This now means that using the Managers without a context manager is less
ugly, since you can explicitly call .close() in a finally block.
Diffstat (limited to 'without-test-modules')
0 files changed, 0 insertions, 0 deletions