~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/repository_implementations/test_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-15 03:18:20 UTC
  • mfrom: (1910.2.6 format-bumps)
  • Revision ID: pqm@pqm.ubuntu.com-20060815031820-fde63c7ba995e484
Root entry always has a revision id

Show diffs side-by-side

added added

removed removed

Lines of Context:
313
313
            self.assertEqual(revision.revision_id, revision_id)
314
314
            self.assertEqual(revision, repo.get_revision(revision_id))
315
315
 
 
316
    def test_root_entry_has_revision(self):
 
317
        tree = self.make_branch_and_tree('.')
 
318
        tree.commit('message', rev_id='rev_id')
 
319
        self.assertEqual('rev_id', tree.basis_tree().inventory.root.revision)
 
320
        rev_tree = tree.branch.repository.revision_tree(tree.last_revision())
 
321
        self.assertEqual('rev_id', rev_tree.inventory.root.revision)
 
322
 
316
323
 
317
324
class TestCaseWithComplexRepository(TestCaseWithRepository):
318
325