~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Jelmer Vernooij
  • Date: 2011-09-12 09:51:52 UTC
  • mfrom: (6129 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6130.
  • Revision ID: jelmer@samba.org-20110912095152-04atttpiqgn2lzjw
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1378
1378
        # specific check.
1379
1379
        return result
1380
1380
 
1381
 
    def _get_checkout_format(self):
 
1381
    def _get_checkout_format(self, lightweight=False):
1382
1382
        """Return the most suitable metadir for a checkout of this branch.
1383
1383
        Weaves are used if this branch's repository uses weaves.
1384
1384
        """
1430
1430
        """
1431
1431
        t = transport.get_transport(to_location)
1432
1432
        t.ensure_base()
 
1433
        format = self._get_checkout_format(lightweight=lightweight)
1433
1434
        if lightweight:
1434
 
            format = self._get_checkout_format()
1435
1435
            checkout = format.initialize_on_transport(t)
1436
1436
            from_branch = BranchReferenceFormat().initialize(checkout, 
1437
1437
                target_branch=self)
1438
1438
        else:
1439
 
            format = self._get_checkout_format()
1440
1439
            checkout_branch = bzrdir.BzrDir.create_branch_convenience(
1441
1440
                to_location, force_new_tree=False, format=format)
1442
1441
            checkout = checkout_branch.bzrdir