~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

Merge bzr.dev and tree-file-ids-as-tuples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2416
2416
        tree_transport = self.bzrdir.root_transport.clone(sub_path)
2417
2417
        if tree_transport.base != branch_transport.base:
2418
2418
            tree_bzrdir = format.initialize_on_transport(tree_transport)
2419
 
            branch.BranchReferenceFormat().initialize(tree_bzrdir,
2420
 
                target_branch=new_branch)
 
2419
            tree_bzrdir.set_branch_reference(new_branch)
2421
2420
        else:
2422
2421
            tree_bzrdir = branch_bzrdir
2423
2422
        wt = tree_bzrdir.create_workingtree(_mod_revision.NULL_REVISION)