~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

First cut at pluralised VersionedFiles. Some rather massive API incompatabilities, primarily because of the difficulty of coherence among competing stores.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        tree.lock_read()
58
58
        self.addCleanup(tree.unlock)
59
59
        graph = tree.branch.repository.get_graph()
60
 
        ancestry_graph = graph.get_parent_map(tree.branch.repository.all_revision_ids())
 
60
        ancestry_graph = graph.get_parent_map(
 
61
            tree.branch.repository.all_revision_ids())
61
62
        self.assertEqual({'rev-1':('null:',),
62
63
                          'rev-2':('rev-1', ),
63
64
                          'rev-1.1.1':('rev-1', ),
280
281
                branch.repository.commit_write_group()
281
282
        finally:
282
283
            branch.unlock()
 
284
        # A signature without a revision should not be accessible.
283
285
        self.assertRaises(errors.NoSuchRevision,
284
286
                          branch.repository.has_signature_for_revision_id,
285
287
                          'A')