/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-15 00:07:46 UTC
  • mto: This revision was merged to the branch mainline in revision 1923.
  • Revision ID: john@arbash-meinel.com-20060815000746-b771fead10d0f64c
Fix a small bug in _create_heavily_merged_tree when the target dir already exists

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Benchmark test suite for bzr."""
19
19
 
 
20
import errno
20
21
import os
21
22
import shutil
22
23
 
309
310
                                hot_cache=True)
310
311
 
311
312
    def _create_heavily_merged_tree(self, root, in_cache=False):
312
 
        os.mkdir(root)
 
313
        try:
 
314
            os.mkdir(root)
 
315
        except (IOError, OSError), e:
 
316
            if e.errno not in (errno.EEXIST,):
 
317
                raise
 
318
 
313
319
        tree = bzrdir.BzrDir.create_standalone_workingtree(
314
320
                root + '/tree1')
315
321
        tree.lock_write()