Rev 3782: Up-call to the parent as suggested by Andrew. in http://bzr.arbash-meinel.com/branches/bzr/1.9-dev/btree_optimize
John Arbash Meinel
john at arbash-meinel.com
Wed Oct 22 20:25:06 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.9-dev/btree_optimize
------------------------------------------------------------
revno: 3782
revision-id: john at arbash-meinel.com-20081022192446-gh0f5zijpmurmdmg
parent: john at arbash-meinel.com-20081016185822-3zwdbkphgacdz9s5
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: btree_optimize
timestamp: Wed 2008-10-22 14:24:46 -0500
message:
Up-call to the parent as suggested by Andrew.
-------------- next part --------------
=== modified file 'bzrlib/repofmt/pack_repo.py'
--- a/bzrlib/repofmt/pack_repo.py 2008-10-16 18:58:22 +0000
+++ b/bzrlib/repofmt/pack_repo.py 2008-10-22 19:24:46 +0000
@@ -973,13 +973,8 @@
def open_pack(self):
"""Open a pack for the pack we are creating."""
- new_pack = NewPack(self._pack_collection._upload_transport,
- self._pack_collection._index_transport,
- self._pack_collection._pack_transport, upload_suffix=self.suffix,
- file_mode=self._pack_collection.repo.bzrdir._get_file_mode(),
- index_builder_class=self._pack_collection._index_builder_class,
- index_class=self._pack_collection._index_class)
-
+ new_pack = super(OptimisingPacker, self).open_pack()
+ # Turn on the optimization flags for all the index builders.
new_pack.revision_index.set_optimize(for_size=True)
new_pack.inventory_index.set_optimize(for_size=True)
new_pack.text_index.set_optimize(for_size=True)
More information about the bazaar-commits
mailing list