~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

Make make_branch_and_tree fall back to creating a local checkout if the transport doesn't support working trees, allowing several more Remote tests to pass.

Show diffs side-by-side

added added

removed removed

Lines of Context:
654
654
 
655
655
    def _get_checkout_format(self):
656
656
        """Return the most suitable metadir for a checkout of this branch.
657
 
        Weaves are used if this branch's repostory uses weaves.
 
657
        Weaves are used if this branch's repository uses weaves.
658
658
        """
659
 
        if isinstance(self.bzrdir, bzrdir.BzrDirPreSplitOut):
 
659
        from bzrlib.remote import RemoteBzrDir
 
660
        if isinstance(self.bzrdir, (bzrdir.BzrDirPreSplitOut, RemoteBzrDir)):
660
661
            from bzrlib.repofmt import weaverepo
661
662
            format = bzrdir.BzrDirMetaFormat1()
662
663
            format.repository_format = weaverepo.RepositoryFormat7()