~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: 2008-06-25 10:36:36 UTC
  • mfrom: (3350.6.12 versionedfiles)
  • Revision ID: pqm@pqm.ubuntu.com-20080625103636-6kxh4e1gmyn82f50
(mbp for robertc) VersionedFiles refactoring

Show diffs side-by-side

added added

removed removed

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