~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/clone.py

  • Committer: John Arbash Meinel
  • Date: 2005-11-30 15:43:57 UTC
  • mto: (1185.50.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1518.
  • Revision ID: john@arbash-meinel.com-20051130154357-614206b3a7b83cd0
Refactored bzrlib/ui.py into a module with the possibility for multiple ui forms.

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.append_revision(*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: