~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-08 00:28:10 UTC
  • mfrom: (2617.6.9 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070808002810-703n3mr6b6hwataj
(robertc) Introduce write_groups for repositories, allowing repositories with the physical ability to do transactional data insertion to have that modelled within bzr. (Robert Collins).

Show diffs side-by-side

added added

removed removed

Lines of Context:
367
367
        result.report_results(verbose=False)
368
368
 
369
369
    def test_get_commit_builder(self):
370
 
        self.assertIsInstance(self.make_branch(".").get_commit_builder([]), 
371
 
            repository.CommitBuilder)
 
370
        branch = self.make_branch(".")
 
371
        branch.lock_write()
 
372
        builder = branch.get_commit_builder([])
 
373
        self.assertIsInstance(builder, repository.CommitBuilder)
 
374
        branch.repository.commit_write_group()
 
375
        branch.unlock()
372
376
 
373
377
    def test_generate_revision_history(self):
374
378
        """Create a fake revision history easily."""