~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_memorytree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-22 21:20:30 UTC
  • mfrom: (3010.1.17 pack.read-locks)
  • Revision ID: pqm@pqm.ubuntu.com-20071122212030-ehfexlt3qzptnsdv
(robertc) Various lock and write-group correctness issues which show
        up when packs are the default format. (Robert Collins, #154204).

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
        tree.unlock()
144
144
        # and we should have a revision that is accessible outside the tree lock
145
145
        revtree = tree.branch.repository.revision_tree(revision_id)
 
146
        revtree.lock_read()
 
147
        self.addCleanup(revtree.unlock)
146
148
        self.assertEqual('barshoom', revtree.get_file('foo-id').read())
147
149
 
148
150
    def test_unversion(self):