/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/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-09 08:12:01 UTC
  • mfrom: (5837.1.3 inter-no-default)
  • Revision ID: pqm@pqm.ubuntu.com-20110509081201-1nreh088nt7xh3l1
(jelmer) Require the default for Inter.get to be explicitly registered.
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3552
3552
            raise errors.IncompatibleRepositories(source, target,
3553
3553
                "different serializers")
3554
3554
 
 
3555
    @classmethod
 
3556
    def _get_repo_format_to_test(self):
 
3557
        return None
 
3558
 
 
3559
    @classmethod
 
3560
    def is_compatible(cls, source, target):
 
3561
        # The default implementation is compatible with everything
 
3562
        return True
 
3563
 
3555
3564
 
3556
3565
class InterSameDataRepository(InterRepository):
3557
3566
    """Code for converting between repositories that represent the same data.
3913
3922
        return basis_id, basis_tree
3914
3923
 
3915
3924
 
 
3925
InterRepository.register_optimiser(InterRepository)
3916
3926
InterRepository.register_optimiser(InterDifferingSerializer)
3917
3927
InterRepository.register_optimiser(InterSameDataRepository)
3918
3928