/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/remote.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:
569
569
    def check_conversion_target(self, target_format):
570
570
        if self.rich_root_data and not target_format.rich_root_data:
571
571
            raise errors.BadConversionTarget(
572
 
                'Does not support rich root data.', target_format)
 
572
                'Does not support rich root data.', target_format,
 
573
                from_format=self)
573
574
        if (self.supports_tree_reference and
574
575
            not getattr(target_format, 'supports_tree_reference', False)):
575
576
            raise errors.BadConversionTarget(
576
 
                'Does not support nested trees', target_format)
 
577
                'Does not support nested trees', target_format,
 
578
                from_format=self)
577
579
 
578
580
    def network_name(self):
579
581
        if self._network_name: