/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/groupcompress_repo.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:
1104
1104
    def check_conversion_target(self, target_format):
1105
1105
        if not target_format.rich_root_data:
1106
1106
            raise errors.BadConversionTarget(
1107
 
                'Does not support rich root data.', target_format)
 
1107
                'Does not support rich root data.', target_format,
 
1108
                from_format=self)
1108
1109
        if (self.supports_tree_reference and 
1109
1110
            not getattr(target_format, 'supports_tree_reference', False)):
1110
1111
            raise errors.BadConversionTarget(
1111
 
                'Does not support nested trees', target_format)
 
1112
                'Does not support nested trees', target_format,
 
1113
                from_format=self)
1112
1114
 
1113
1115
 
1114
1116