/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/tree_creator/kernel_like.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-18 00:12:19 UTC
  • mfrom: (1943.1.1 cache-fix)
  • Revision ID: pqm@pqm.ubuntu.com-20060818001219-f32cfe5183ffe012
(jam) small fix to make_kernel_like_tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tree creators for kernel-like trees"""
18
18
 
 
19
import errno
19
20
import os
20
21
 
21
22
from bzrlib import (
83
84
                    files.append(prefix)
84
85
                    files.extend([prefix + str(foo) for foo in range(20)])
85
86
        cwd = osutils.getcwd()
 
87
        try:
 
88
            os.mkdir(root)
 
89
        except OSError, e:
 
90
            if e.errno not in (errno.EEXIST,):
 
91
                raise
86
92
        os.chdir(root)
87
93
        self._test.build_tree(files)
88
94
        os.chdir(cwd)