Rev 3054: Pack repositories need to be explicitly locked for graph().is_ancestor to work. in http://bzr.arbash-meinel.com/branches/bzr/0.93-dev/is_ancestor_fix

John Arbash Meinel john at arbash-meinel.com
Fri Nov 30 14:19:14 GMT 2007


At http://bzr.arbash-meinel.com/branches/bzr/0.93-dev/is_ancestor_fix

------------------------------------------------------------
revno: 3054
revision-id:john at arbash-meinel.com-20071130141824-p3e0r9p6gf5xth5n
parent: john at arbash-meinel.com-20071130033433-0j25tjs5jv2yyn40
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: is_ancestor_fix
timestamp: Fri 2007-11-30 08:18:24 -0600
message:
  Pack repositories need to be explicitly locked for graph().is_ancestor to work.
modified:
  bzrlib/tests/test_ancestry.py  test_ancestry.py-20050913023709-69768e94848312c6
-------------- next part --------------
=== modified file 'bzrlib/tests/test_ancestry.py'
--- a/bzrlib/tests/test_ancestry.py	2007-07-11 16:42:37 +0000
+++ b/bzrlib/tests/test_ancestry.py	2007-11-30 14:18:24 +0000
@@ -50,6 +50,8 @@
         builder = BranchBuilder(self.get_transport())
         rev_id = builder.build_commit()
         branch = builder.get_branch()
+        branch.lock_read()
+        self.addCleanup(branch.unlock)
         self.assertTrue(is_ancestor('null:', 'null:', branch))
         self.assertTrue(is_ancestor(rev_id, 'null:',  branch))
         self.assertFalse(is_ancestor('null:', rev_id, branch))



More information about the bazaar-commits mailing list