~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-18 01:38:56 UTC
  • mfrom: (4608.1.7 408824-test-upgrade)
  • Revision ID: pqm@pqm.ubuntu.com-20090818013856-vezgd3arfawq9x2l
(robertc) Fix upgrade when the default format has been changed to 2a.
        (Martin Pool)

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