summaryrefslogtreecommitdiff
path: root/morphlib/buildbranch.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-11-27 14:26:31 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-11-29 16:11:44 +0000
commit3eb2b658b1f3a612c78c14f3d2cba2a1f0b1333f (patch)
tree03e8cbb33e59a3cdc6d6d4db9a71631d4b50db30 /morphlib/buildbranch.py
parentb38e47f413c6651c8953d2bebd99ae0bb80c07f9 (diff)
downloadmorph-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 'morphlib/buildbranch.py')
0 files changed, 0 insertions, 0 deletions