~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Martin Pool
  • Date: 2009-08-14 11:11:29 UTC
  • mto: (4599.4.26 bug-398668)
  • mto: This revision was merged to the branch mainline in revision 4622.
  • Revision ID: mbp@sourcefrog.net-20090814111129-ozigh3o0jjfojiix
Remove redundant overrides of check_conversion_target

Show diffs side-by-side

added added

removed removed

Lines of Context:
566
566
    def __eq__(self, other):
567
567
        return self.__class__ is other.__class__
568
568
 
569
 
    def check_conversion_target(self, target_format):
570
 
        if self.rich_root_data and not target_format.rich_root_data:
571
 
            raise errors.BadConversionTarget(
572
 
                'Does not support rich root data.', target_format,
573
 
                from_format=self)
574
 
        if (self.supports_tree_reference and
575
 
            not getattr(target_format, 'supports_tree_reference', False)):
576
 
            raise errors.BadConversionTarget(
577
 
                'Does not support nested trees', target_format,
578
 
                from_format=self)
579
 
 
580
569
    def network_name(self):
581
570
        if self._network_name:
582
571
            return self._network_name