~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/clone.py

Merge from mbp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
        branch_to = Branch.initialize(to_location)
89
89
        mutter("copy branch from %s to %s", branch_from, branch_to)
90
90
        branch_to.working_tree().set_root_id(branch_from.get_root_id())
91
 
        branch_to.set_revision_history(history)
92
91
        _copy_control_weaves(branch_from, branch_to)
93
92
        _copy_text_weaves(branch_from, branch_to)
94
93
        _copy_revision_store(branch_from, branch_to)
 
94
        branch_to.set_parent(branch_from.base)
 
95
        # must be done *after* history is copied across
 
96
        branch_to.append_revision(*history)
95
97
        build_working_dir(to_location)
96
 
        branch_to.set_parent(branch_from.base)
97
98
        mutter("copied")
98
99
        return branch_to
99
100
    finally: