~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_inv.py

  • Committer: Aaron Bentley
  • Date: 2005-12-25 22:44:53 UTC
  • mto: (1185.67.11 bzr.revision-storage)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: aaron.bentley@utoronto.ca-20051225224453-098a11d24b7edf84
Added write locks as appropriate

Show diffs side-by-side

added added

removed removed

Lines of Context:
335
335
        self.wt.add(['file'], ['fileid'])
336
336
        self.wt.commit('add file', rev_id='B')
337
337
        self.inv_B = self.branch.repository.get_inventory('B')
338
 
        self.branch.control_files.put_utf8('revision-history', 'A\n')
 
338
        self.branch.lock_write()
 
339
        try:
 
340
            self.branch.control_files.put_utf8('revision-history', 'A\n')
 
341
        finally:
 
342
            self.branch.unlock()
339
343
        self.assertEqual(self.branch.revision_history(), ['A'])
340
344
        self.wt.commit('another add of file', rev_id='C')
341
345
        self.inv_C = self.branch.repository.get_inventory('C')