Rev 4976: Mention an idea about memory tree re-use. in file:///home/vila/src/bzr/bugs/476293-log-check-ancestor/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Jan 22 11:22:50 GMT 2010
At file:///home/vila/src/bzr/bugs/476293-log-check-ancestor/
------------------------------------------------------------
revno: 4976
revision-id: v.ladeuil+lp at free.fr-20100122112250-f39rudm5dpzua21n
parent: v.ladeuil+lp at free.fr-20100122111530-r9b404et44kurr5l
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: respect-direction
timestamp: Fri 2010-01-22 12:22:50 +0100
message:
Mention an idea about memory tree re-use.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_log.py'
--- a/bzrlib/tests/test_log.py 2010-01-22 11:15:30 +0000
+++ b/bzrlib/tests/test_log.py 2010-01-22 11:22:50 +0000
@@ -1090,6 +1090,11 @@
# use it. Since 'log' only uses the tree in a readonly
# fashion, it seems a shame to regenerate an identical
# tree for each test.
+ # TODO: vila 20100122 One way to address the shame above will be to
+ # create a memory tree during test parametrization and give a
+ # *copy* of this tree to each test. Copying a memory tree ought
+ # to be cheap, at least cheaper than creating them with such
+ # complex setups.
tree = self.make_branch_and_tree('tree')
tree.lock_write()
self.addCleanup(tree.unlock)
More information about the bazaar-commits
mailing list