~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Some work towards including the correct changes for TREE_ROOT in check parameterised tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
            inv = inventory.Inventory(revision_id='revision-id')
57
57
            inv.root.revision = 'revision-id'
58
58
            inv_sha1 = repo.add_inventory('revision-id', inv, [])
59
 
            root_id = inv.root.file_id
60
 
            vf = repo.weave_store.get_weave_or_empty(root_id,
61
 
                repo.get_transaction())
62
 
            vf.add_lines('revision-id', [], [])
 
59
            if repo.supports_rich_root():
 
60
                root_id = inv.root.file_id
 
61
                vf = repo.weave_store.get_weave_or_empty(root_id,
 
62
                    repo.get_transaction())
 
63
                vf.add_lines('revision-id', [], [])
63
64
            revision = _mod_revision.Revision('revision-id',
64
65
                committer='jrandom@example.com', timestamp=0,
65
66
                inventory_sha1=inv_sha1, timezone=0, message='message',