~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Aaron Bentley
  • Date: 2006-08-17 19:51:54 UTC
  • mto: (1910.2.43 format-bumps)
  • mto: This revision was merged to the branch mainline in revision 1997.
  • Revision ID: abentley@panoramicfeedback.com-20060817195154-af960bfc59351ebf
Implement knit repo format 2

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
        """Return true if this bzrdir is one whose format we can convert from."""
87
87
        return True
88
88
 
 
89
    def check_conversion_target(self, target_format):
 
90
        target_repo_format = target_format.repository_format
 
91
        source_repo_format = self._format.repository_format
 
92
        source_repo_format.check_conversion_target(target_repo_format)
 
93
 
89
94
    @staticmethod
90
95
    def _check_supported(format, allow_unsupported):
91
96
        """Check whether format is a supported format.
1173
1178
    def __return_repository_format(self):
1174
1179
        """Circular import protection."""
1175
1180
        from bzrlib.repository import RepositoryFormat4
1176
 
        return RepositoryFormat4(self)
 
1181
        return RepositoryFormat4()
1177
1182
    repository_format = property(__return_repository_format)
1178
1183
 
1179
1184
 
1228
1233
    def __return_repository_format(self):
1229
1234
        """Circular import protection."""
1230
1235
        from bzrlib.repository import RepositoryFormat5
1231
 
        return RepositoryFormat5(self)
 
1236
        return RepositoryFormat5()
1232
1237
    repository_format = property(__return_repository_format)
1233
1238
 
1234
1239
 
1287
1292
    def __return_repository_format(self):
1288
1293
        """Circular import protection."""
1289
1294
        from bzrlib.repository import RepositoryFormat6
1290
 
        return RepositoryFormat6(self)
 
1295
        return RepositoryFormat6()
1291
1296
    repository_format = property(__return_repository_format)
1292
1297
 
1293
1298