Rev 2817: Unbreak xml benchmarks. in http://people.ubuntu.com/~robertc/baz2.0/xml.writer

Robert Collins robertc at robertcollins.net
Wed Sep 12 22:31:18 BST 2007


At http://people.ubuntu.com/~robertc/baz2.0/xml.writer

------------------------------------------------------------
revno: 2817
revision-id: robertc at robertcollins.net-20070912213108-hghkqespjomlqu43
parent: pqm at pqm.ubuntu.com-20070912075616-4lsus30tfc3sgwy0
committer: Robert Collins <robertc at robertcollins.net>
branch nick: xml.writer
timestamp: Thu 2007-09-13 07:31:08 +1000
message:
  Unbreak xml benchmarks.
modified:
  bzrlib/benchmarks/tree_creator/kernel_like.py kernel_like.py-20060815024128-b16a7pn542u6b13k-1
=== modified file 'bzrlib/benchmarks/tree_creator/kernel_like.py'
--- a/bzrlib/benchmarks/tree_creator/kernel_like.py	2007-07-04 02:43:26 +0000
+++ b/bzrlib/benchmarks/tree_creator/kernel_like.py	2007-09-12 21:31:08 +0000
@@ -210,7 +210,12 @@
                                                  link_bzr=True,
                                                  hot_cache=False)
         tree = creator.create('.')
-        return tree.basis_tree().inventory
+        basis = tree.basis_tree()
+        basis.lock_read()
+        try:
+            return basis.inventory
+        finally:
+            basis.unlock()
 
     def _open_cached(self, cache_dir):
         f = open(cache_dir + '/inventory', 'rb')



More information about the bazaar-commits mailing list