/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/tests/test_repository.py

  • Committer: Vincent Ladeuil
  • Date: 2010-12-07 09:06:39 UTC
  • mto: This revision was merged to the branch mainline in revision 5567.
  • Revision ID: v.ladeuil+lp@free.fr-20101207090639-l77s4ix6oqqn76jx
Fix the remaining references to http://bazaar-vcs.org (except the explicitly historical ones).

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
                           UnsupportedFormatError,
32
32
                           )
33
33
from bzrlib import (
 
34
    btree_index,
34
35
    graph,
35
36
    tests,
36
37
    )
585
586
                                ]
586
587
        repo_a = self.make_repository('a')
587
588
        repo_b = self.make_repository('b')
588
 
        is_compatible = repository.InterWeaveRepo.is_compatible
 
589
        is_compatible = weaverepo.InterWeaveRepo.is_compatible
589
590
        for source in incompatible_formats:
590
591
            # force incompatible left then right
591
592
            repo_a._format = source
597
598
            for target in formats:
598
599
                repo_b._format = target
599
600
                self.assertTrue(is_compatible(repo_a, repo_b))
600
 
        self.assertEqual(repository.InterWeaveRepo,
 
601
        self.assertEqual(weaverepo.InterWeaveRepo,
601
602
                         repository.InterRepository.get(repo_a,
602
603
                                                        repo_b).__class__)
603
604
 
681
682
 
682
683
class Test2a(tests.TestCaseWithMemoryTransport):
683
684
 
 
685
    def test_chk_bytes_uses_custom_btree_parser(self):
 
686
        mt = self.make_branch_and_memory_tree('test', format='2a')
 
687
        mt.lock_write()
 
688
        self.addCleanup(mt.unlock)
 
689
        mt.add([''], ['root-id'])
 
690
        mt.commit('first')
 
691
        index = mt.branch.repository.chk_bytes._index._graph_index._indices[0]
 
692
        self.assertEqual(btree_index._gcchk_factory, index._leaf_factory)
 
693
        # It should also work if we re-open the repo
 
694
        repo = mt.branch.repository.bzrdir.open_repository()
 
695
        repo.lock_read()
 
696
        self.addCleanup(repo.unlock)
 
697
        index = repo.chk_bytes._index._graph_index._indices[0]
 
698
        self.assertEqual(btree_index._gcchk_factory, index._leaf_factory)
 
699
 
684
700
    def test_fetch_combines_groups(self):
685
701
        builder = self.make_branch_builder('source', format='2a')
686
702
        builder.start_series()
956
972
 
957
973
    def setUp(self):
958
974
        super(TestDevelopment6FindParentIdsOfRevisions, self).setUp()
959
 
        self.builder = self.make_branch_builder('source',
960
 
            format='development6-rich-root')
 
975
        self.builder = self.make_branch_builder('source')
961
976
        self.builder.start_series()
962
977
        self.builder.build_snapshot('initial', None,
963
978
            [('add', ('', 'tree-root', 'directory', None))])