~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/groupcompress_repo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-14 12:14:51 UTC
  • mfrom: (4608.1.4 408824-test-upgrade)
  • Revision ID: pqm@pqm.ubuntu.com-20090814121451-n3h9cp3c26mmpe9m
(mbp) cleanup check_conversion_target and upgrade blackbox tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1101
1101
        return ("Development repository format - rich roots, group compression"
1102
1102
            " and chk inventories")
1103
1103
 
1104
 
    def check_conversion_target(self, target_format):
1105
 
        if not target_format.rich_root_data:
1106
 
            raise errors.BadConversionTarget(
1107
 
                'Does not support rich root data.', target_format)
1108
 
        if (self.supports_tree_reference and 
1109
 
            not getattr(target_format, 'supports_tree_reference', False)):
1110
 
            raise errors.BadConversionTarget(
1111
 
                'Does not support nested trees', target_format)
1112
 
 
1113
 
 
1114
1104
 
1115
1105
class RepositoryFormatCHK2(RepositoryFormatCHK1):
1116
1106
    """A CHK repository that uses the bencode revision serializer."""