/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/push.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-25 05:15:39 UTC
  • mfrom: (4044.1.3 push.roundtrips)
  • Revision ID: pqm@pqm.ubuntu.com-20090225051539-61fkvmey7t598fzs
(robertc) Create a clean method for cloning a branch and optimise the
        specific case of clone-to-RemoteBranch to avoid round trips
        reopening a branch we just created. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        # Now the target directory exists, but doesn't have a .bzr
102
102
        # directory. So we need to create it, along with any work to create
103
103
        # all of the dependent branches, etc.
104
 
        dir_to = br_from.bzrdir.clone_on_transport(to_transport,
 
104
        br_to = br_from.create_clone_on_transport(to_transport,
105
105
            revision_id=revision_id, stacked_on=stacked_on)
106
 
        # XXX: Fix this API to allow getting the branch back from the clone
107
 
        # call. Or something. 20090224 RBC/spiv.
108
 
        br_to = dir_to.open_branch()
109
106
        # TODO: Some more useful message about what was copied
110
107
        try:
111
108
            finally_stacked_on = br_to.get_stacked_on_url()