~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 11:34:17 UTC
  • mto: This revision was merged to the branch mainline in revision 5844.
  • Revision ID: jelmer@samba.org-20110508113417-yncmzfuj8f5cklxj
Fix test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1378
1378
    supports_revision_signatures = True
1379
1379
    # Can the revision graph have incorrect parents?
1380
1380
    revision_graph_can_have_wrong_parents = None
 
1381
    # Does this format support rich root data?
 
1382
    rich_root_data = None
1381
1383
 
1382
1384
    def __repr__(self):
1383
1385
        return "%s()" % self.__class__.__name__
1851
1853
                "different serializers")
1852
1854
 
1853
1855
 
1854
 
class InterSameDataRepository(InterRepository):
1855
 
    """Code for converting between repositories that represent the same data.
1856
 
 
1857
 
    Data format and model must match for this to work.
1858
 
    """
1859
 
 
1860
 
    @classmethod
1861
 
    def _get_repo_format_to_test(self):
1862
 
        """Repository format for testing with.
1863
 
 
1864
 
        InterSameData can pull from subtree to subtree and from non-subtree to
1865
 
        non-subtree, so we test this with the richest repository format.
1866
 
        """
1867
 
        from bzrlib.repofmt import knitrepo
1868
 
        return knitrepo.RepositoryFormatKnit3()
1869
 
 
1870
 
    @staticmethod
1871
 
    def is_compatible(source, target):
1872
 
        return InterRepository._same_model(source, target)
1873
 
 
1874
 
 
1875
 
InterRepository.register_optimiser(InterSameDataRepository)
1876
 
 
1877
1856
 
1878
1857
class CopyConverter(object):
1879
1858
    """A repository conversion tool which just performs a copy of the content.