~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/weave_fmt/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:
32
32
class BzrBranch4(FullHistoryBzrBranch):
33
33
    """Branch format 4."""
34
34
 
35
 
    def _get_checkout_format(self):
 
35
    def _get_checkout_format(self, lightweight=False):
36
36
        """Return the most suitable metadir for a checkout of this branch.
37
37
        """
38
38
        from bzrlib.plugins.weave_fmt.repository import RepositoryFormat7
39
39
        from bzrlib.bzrdir import BzrDirMetaFormat1
40
40
        format = BzrDirMetaFormat1()
41
 
        format.repository_format = RepositoryFormat7()
 
41
        if lightweight:
 
42
            format.set_branch_format(self._format)
 
43
            format.repository_format = self.bzrdir._format.repository_format
 
44
        else:
 
45
            format.repository_format = RepositoryFormat7()
42
46
        return format
43
47
 
44
48
    def unbind(self):