~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.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:
3166
3166
        raise NotImplementedError(self.network_name)
3167
3167
 
3168
3168
    def check_conversion_target(self, target_format):
3169
 
        raise NotImplementedError(self.check_conversion_target)
 
3169
        if self.rich_root_data and not target_format.rich_root_data:
 
3170
            raise errors.BadConversionTarget(
 
3171
                'Does not support rich root data.', target_format,
 
3172
                from_format=self)
 
3173
        if (self.supports_tree_reference and 
 
3174
            not getattr(target_format, 'supports_tree_reference', False)):
 
3175
            raise errors.BadConversionTarget(
 
3176
                'Does not support nested trees', target_format,
 
3177
                from_format=self)
3170
3178
 
3171
3179
    def open(self, a_bzrdir, _found=False):
3172
3180
        """Return an instance of this format for the bzrdir a_bzrdir.