~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-04-27 07:02:04 UTC
  • mfrom: (3381.1.4 fetch-locking)
  • Revision ID: pqm@pqm.ubuntu.com-20080427070204-4t5flfqnnmr6bmiw
Remove locking from generators

Show diffs side-by-side

added added

removed removed

Lines of Context:
781
781
        empty_repo = self.make_repository('empty-repo')
782
782
        search = graph.SearchResult(set(['rev1a', 'rev2', 'rev3']),
783
783
            set(), 3, ['rev1a', 'rev2', 'rev3'])
 
784
        broken_repo.lock_read()
 
785
        self.addCleanup(broken_repo.unlock)
784
786
        stream = broken_repo.get_data_stream_for_search(search)
785
787
        empty_repo.lock_write()
786
788
        self.addCleanup(empty_repo.unlock)