~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-16 01:09:56 UTC
  • mfrom: (5784.1.4 760435-less-fail)
  • Revision ID: pqm@pqm.ubuntu.com-20110416010956-5wrpm136qq2hz5f3
(mbp) rename and deprecate failUnlessExists and failIfExists (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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