~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-09 16:19:14 UTC
  • mto: This revision was merged to the branch mainline in revision 6129.
  • Revision ID: jelmer@samba.org-20110909161914-jy6x0skecmoa2ic4
Fix weave format test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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):