~bzr-pqm/bzr/bzr.dev

  • Committer: Vincent Ladeuil
  • Date: 2008-01-29 15:16:31 UTC
  • mto: (3206.1.1 trunk)
  • Revision ID: v.ladeuil+lp@free.fr-20080129151631-vqjd13tb405mobx6
Fix two more leaking tmp dirs, by reworking TransformPreview lock handling.

* bzrlib/tests/test_transform.py:
(TestTransformMerge): Revert previous patch and cleanly call
preview.finalize now that we can.

* bzrlib/tests/test_merge.py:
(TestMerge.test_make_preview_transform): Catch TransformPreview
leak.

* bzrlib/builtins.py:
(cmd_merge._do_preview): Finalize the TransformPreview or the
limbodir will stay in /tmp.

* bzrlib/transform.py:
(TreeTransformBase.__init__): Create the _deletiondir since it's
reffered to by finalize.
(TreeTransformBase.finalize): Delete the dir only if _deletiondir
is set.
(TreeTransform.__init__): Use a temp var for deletiondir and set
the attribute after the base class __init__ has been called.
(TransformPreview.__init__): Read locks the tree since finalize
wants to unlock it (as suggested by Aaron).
Filename Latest Rev Last Changed Committer Comment Size
..
developers 2481.1.1 17 years ago Robert Collins Move HACKING to docs/developers/HACKING and adjust Diff
en 2691.1.1 17 years ago Ian Clatworthy move most existing topics into the User Guide dir Diff
bazaar-vcs.org.kid 2691.1.17 17 years ago Ian Clatworthy Fix pretty doc generation so works for all html do 18.2 KB Diff Download File
default.css 2677.1.1 17 years ago Alexander Belchenko rst2html: workaround for IE bug with id="tags" 1.8 KB Diff Download File
index.txt 3101.2.4 17 years ago Ian Clatworthy include feedback from kiko 1.5 KB Diff Download File