~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
..
tree_creator 1908.2.16 18 years ago John Arbash Meinel Move all the new TreeCreator classes into separate Diff
__init__.py 2776.2.1 17 years ago Robert Collins 25 percent time reduction in pack write logic. 8.8 KB Diff Download File
bench_add.py 2399.1.7 17 years ago John Arbash Meinel Cleanup bzrlib/benchmarks/* so that everything at 1.2 KB Diff Download File
bench_bench.py 2399.1.7 17 years ago John Arbash Meinel Cleanup bzrlib/benchmarks/* so that everything at 4.1 KB Diff Download File
bench_bundle.py 2644.2.1 17 years ago Lukáš Lalinský Fix deprecation warnings on benchmarks. 8.1 KB Diff Download File
bench_cache_utf8.py 2399.1.7 17 years ago John Arbash Meinel Cleanup bzrlib/benchmarks/* so that everything at 8.9 KB Diff Download File
bench_checkout.py 2644.2.1 17 years ago Lukáš Lalinský Fix deprecation warnings on benchmarks. 1.1 KB Diff Download File
bench_commit.py 2644.2.1 17 years ago Lukáš Lalinský Fix deprecation warnings on benchmarks. 3.2 KB Diff Download File
bench_dirstate.py 2474.1.64 17 years ago John Arbash Meinel Fix dirstate benchmarks for new layout. 16.6 KB Diff Download File
bench_info.py 2052.3.4 18 years ago John Arbash Meinel [merge] bzr.dev 1.3 KB Diff Download File
bench_inventory.py 2399.1.7 17 years ago John Arbash Meinel Cleanup bzrlib/benchmarks/* so that everything at 1.5 KB Diff Download File
bench_knit.py 2484.1.14 17 years ago John Arbash Meinel Fix up the benchmarks (bench_knit.py) for the new 3.3 KB Diff Download File
bench_log.py 2644.2.1 17 years ago Lukáš Lalinský Fix deprecation warnings on benchmarks. 3.9 KB Diff Download File
bench_osutils.py 2399.1.7 17 years ago John Arbash Meinel Cleanup bzrlib/benchmarks/* so that everything at 1.3 KB Diff Download File
bench_pack.py 2776.2.1 17 years ago Robert Collins 25 percent time reduction in pack write logic. 1.8 KB Diff Download File
bench_rocks.py 2399.1.7 17 years ago John Arbash Meinel Cleanup bzrlib/benchmarks/* so that everything at 1 KB Diff Download File
bench_sftp.py 2399.1.7 17 years ago John Arbash Meinel Cleanup bzrlib/benchmarks/* so that everything at 3.3 KB Diff Download File
bench_startup.py 2399.1.7 17 years ago John Arbash Meinel Cleanup bzrlib/benchmarks/* so that everything at 3.2 KB Diff Download File
bench_status.py 2644.2.1 17 years ago Lukáš Lalinský Fix deprecation warnings on benchmarks. 2.1 KB Diff Download File
bench_transform.py 2399.1.7 17 years ago John Arbash Meinel Cleanup bzrlib/benchmarks/* so that everything at 1.5 KB Diff Download File
bench_workingtree.py 2399.1.7 17 years ago John Arbash Meinel Cleanup bzrlib/benchmarks/* so that everything at 4.2 KB Diff Download File
bench_xml.py 2399.1.7 17 years ago John Arbash Meinel Cleanup bzrlib/benchmarks/* so that everything at 3.6 KB Diff Download File