/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/knitrepo.py

  • Committer: Martin Pool
  • Date: 2009-08-14 09:31:37 UTC
  • mto: (4599.4.26 bug-398668)
  • mto: This revision was merged to the branch mainline in revision 4610.
  • Revision ID: mbp@sourcefrog.net-20090814093137-hllvczkxnkp3so48
BadConversionTarget error includes source format

Show diffs side-by-side

added added

removed removed

Lines of Context:
463
463
    def check_conversion_target(self, target_format):
464
464
        if not target_format.rich_root_data:
465
465
            raise errors.BadConversionTarget(
466
 
                'Does not support rich root data.', target_format)
 
466
                'Does not support rich root data', target_format,
 
467
                from_format=self)
467
468
        if not getattr(target_format, 'supports_tree_reference', False):
468
469
            raise errors.BadConversionTarget(
469
 
                'Does not support nested trees', target_format)
 
470
                'Does not support nested trees', target_format,
 
471
                from_format=self)
470
472
 
471
473
    def get_format_string(self):
472
474
        """See RepositoryFormat.get_format_string()."""
512
514
    def check_conversion_target(self, target_format):
513
515
        if not target_format.rich_root_data:
514
516
            raise errors.BadConversionTarget(
515
 
                'Does not support rich root data.', target_format)
 
517
                'Does not support rich root data.', target_format,
 
518
                from_format=self)
516
519
 
517
520
    def get_format_string(self):
518
521
        """See RepositoryFormat.get_format_string()."""