~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Jelmer Vernooij
  • Date: 2012-01-18 17:47:06 UTC
  • mto: (6437.3.9 2.5)
  • mto: This revision was merged to the branch mainline in revision 6444.
  • Revision ID: jelmer@samba.org-20120118174706-33pxrecbgbfd8ryx
UseĀ ControlDir.set_branch_reference.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1459
1459
        format = self._get_checkout_format(lightweight=lightweight)
1460
1460
        if lightweight:
1461
1461
            checkout = format.initialize_on_transport(t)
1462
 
            from_branch = BranchReferenceFormat().initialize(checkout, 
1463
 
                target_branch=self)
 
1462
            from_branch = checkout.set_branch_reference(target_branch=self)
1464
1463
        else:
1465
1464
            checkout_branch = controldir.ControlDir.create_branch_convenience(
1466
1465
                to_location, force_new_tree=False, format=format)