Rev 3016: Lock correctness in branch implementation tests. in http://people.ubuntu.com/~robertc/baz2.0/pack.read-locks
Robert Collins
robertc at robertcollins.net
Sun Nov 25 22:14:02 GMT 2007
At http://people.ubuntu.com/~robertc/baz2.0/pack.read-locks
------------------------------------------------------------
revno: 3016
revision-id:robertc at robertcollins.net-20071125221339-u715g0yylii6g7ue
parent: pqm at pqm.ubuntu.com-20071122234103-fn117zncqrqv39me
committer: Robert Collins <robertc at robertcollins.net>
branch nick: pack.read-locks
timestamp: Mon 2007-11-26 09:13:39 +1100
message:
Lock correctness in branch implementation tests.
modified:
bzrlib/tests/branch_implementations/test_branch.py testbranch.py-20050711070244-121d632bc37d7253
=== modified file 'bzrlib/tests/branch_implementations/test_branch.py'
--- a/bzrlib/tests/branch_implementations/test_branch.py 2007-11-01 09:52:45 +0000
+++ b/bzrlib/tests/branch_implementations/test_branch.py 2007-11-25 22:13:39 +0000
@@ -97,6 +97,8 @@
rev = b2.repository.get_revision('revision-1')
tree = b2.repository.revision_tree('revision-1')
+ tree.lock_read()
+ self.addCleanup(tree.unlock)
self.assertEqual(tree.get_file_text('foo-id'), 'hello')
def test_get_revision_delta(self):
More information about the bazaar-commits
mailing list