~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/clone.py

  • Committer: Robert Collins
  • Date: 2005-11-05 23:25:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1503.
  • Revision ID: robertc@robertcollins.net-20051105232539-7ecddc1d5c8f66fe
Move set_pending_merges to WorkingTree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
            os.mkdir(to_location)
88
88
        branch_to = Branch.initialize(to_location)
89
89
        mutter("copy branch from %s to %s", branch_from, branch_to)
90
 
        branch_to.set_root_id(branch_from.get_root_id())
 
90
        branch_to.working_tree().set_root_id(branch_from.get_root_id())
91
91
        branch_to.append_revision(*history)
92
92
        _copy_control_weaves(branch_from, branch_to)
93
93
        _copy_text_weaves(branch_from, branch_to)
151
151
    mutter("copy branch from %s to %s", branch_from, br_to)
152
152
    if basis_branch is not None:
153
153
        basis_branch.push_stores(br_to)
154
 
    br_to.set_root_id(branch_from.get_root_id())
 
154
    br_to.working_tree().set_root_id(branch_from.get_root_id())
155
155
    if revision is None:
156
156
        revision = branch_from.last_revision()
157
157
    br_to.update_revisions(branch_from, stop_revision=revision)