~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: John Arbash Meinel
  • Date: 2011-04-12 14:55:57 UTC
  • mto: This revision was merged to the branch mainline in revision 5784.
  • Revision ID: john@arbash-meinel.com-20110412145557-ltjdd171cbddfbrf
Fix bug #758695, correctly order the 'cfn' vs 'cfi' in callgrind output.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
            format.initialize(dir)
138
138
            t = transport.get_transport(url)
139
139
            found_format = repository.RepositoryFormat.find_format(dir)
140
 
            self.assertIsInstance(found_format, format.__class__)
 
140
            self.failUnless(isinstance(found_format, format.__class__))
141
141
        check_format(repository.format_registry.get_default(), "bar")
142
142
 
143
143
    def test_find_format_no_repository(self):
1444
1444
        # Because of how they were built, they correspond to
1445
1445
        # ['D', 'C', 'B', 'A']
1446
1446
        packs = b.repository._pack_collection.packs
1447
 
        packer = knitpack_repo.KnitPacker(b.repository._pack_collection,
 
1447
        packer = pack_repo.Packer(b.repository._pack_collection,
1448
1448
                                  packs, 'testing',
1449
1449
                                  revision_ids=['B', 'C'])
1450
1450
        # Now, when we are copying the B & C revisions, their pack files should
1464
1464
        return repo._pack_collection
1465
1465
 
1466
1466
    def test_open_pack_will_optimise(self):
1467
 
        packer = knitpack_repo.OptimisingKnitPacker(self.get_pack_collection(),
 
1467
        packer = pack_repo.OptimisingPacker(self.get_pack_collection(),
1468
1468
                                            [], '.test')
1469
1469
        new_pack = packer.open_pack()
1470
1470
        self.addCleanup(new_pack.abort) # ensure cleanup