~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
976
976
            inv = inventory.Inventory(revision_id='rev1a')
977
977
            inv.root.revision = 'rev1a'
978
978
            self.add_file(repo, inv, 'file1', 'rev1a', [])
 
979
            repo.texts.add_lines((inv.root.file_id, 'rev1a'), [], [])
979
980
            repo.add_inventory('rev1a', inv, [])
980
981
            revision = _mod_revision.Revision('rev1a',
981
982
                committer='jrandom@example.com', timestamp=0,
1016
1017
    def add_revision(self, repo, revision_id, inv, parent_ids):
1017
1018
        inv.revision_id = revision_id
1018
1019
        inv.root.revision = revision_id
 
1020
        repo.texts.add_lines((inv.root.file_id, revision_id), [], [])
1019
1021
        repo.add_inventory(revision_id, inv, parent_ids)
1020
1022
        revision = _mod_revision.Revision(revision_id,
1021
1023
            committer='jrandom@example.com', timestamp=0, inventory_sha1='',