/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/tests/__init__.py

(jelmer) Create a checkout if the target control directory does not support
 working trees. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2962
2962
        # so check for that by checking bzrdir.BzrDirFormat.get_default_format()
2963
2963
        # RBC 20060208
2964
2964
        format = self.resolve_format(format=format)
 
2965
        if not format.supports_workingtrees:
 
2966
            b = self.make_branch(relpath+'.branch', format=format)
 
2967
            return b.create_checkout(relpath, lightweight=True)
2965
2968
        b = self.make_branch(relpath, format=format)
2966
2969
        try:
2967
2970
            return b.bzrdir.create_workingtree()