~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-17 00:32:27 UTC
  • mfrom: (4606.2.1 test-foreign)
  • Revision ID: pqm@pqm.ubuntu.com-20090817003227-g813yyjlq47j9qyb
(robertc) Prepare test_foreign for rich roots as the default format.
        (Robert Collins)

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
 
569
580
    def network_name(self):
570
581
        if self._network_name:
571
582
            return self._network_name