~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-08 12:54:20 UTC
  • mto: This revision was merged to the branch mainline in revision 5840.
  • Revision ID: jelmer@samba.org-20110508125420-9q04aeon8s3mhzbj
Register defaults as first optimiser for existing Inter objects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3521
3521
            raise errors.IncompatibleRepositories(source, target,
3522
3522
                "different serializers")
3523
3523
 
 
3524
    @classmethod
 
3525
    def _get_repo_format_to_test(self):
 
3526
        return []
 
3527
 
 
3528
    @classmethod
 
3529
    def is_compatible(cls, source, target):
 
3530
        # The default implementation is compatible with everything
 
3531
        return True
 
3532
 
3524
3533
 
3525
3534
class InterSameDataRepository(InterRepository):
3526
3535
    """Code for converting between repositories that represent the same data.
3882
3891
        return basis_id, basis_tree
3883
3892
 
3884
3893
 
 
3894
InterRepository.register_optimiser(InterRepository)
3885
3895
InterRepository.register_optimiser(InterDifferingSerializer)
3886
3896
InterRepository.register_optimiser(InterSameDataRepository)
3887
3897