[MERGE] Btree repo again, better parent and thus diff
John Arbash Meinel
john at arbash-meinel.com
Sat Sep 27 17:26:47 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
def __init__(self, upload_transport, index_transport, pack_transport,
- - upload_suffix='', file_mode=None):
+ upload_suffix='', file_mode=None, index_builder_class=None,
+ index_class=None):
"""Create a NewPack instance.
^- Do we want to make these strictly required? For compatibility we
could say "if None: use_old_version".
...
@@ -1536,7 +1554,7 @@
"""
self.lock_names()
try:
- - builder = GraphIndexBuilder()
+ builder = self._index_builder_class()
# load the disk nodes across
disk_nodes = set()
for index, key, value in self._iter_disk_pack_index():
@@ -1608,7 +1626,9 @@
^- This is during "save_pack_names()" the old code directly used
GraphIndexBuilder, rather than InMemoryGraphIndex.
You no longer ever refer to GraphIndexBuilder in this file. Is there any
reason to use GIBuilder rather than IMGI?
Anyway, it looks good:
BB:approve
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjeXscACgkQJdeBCYSNAANQkQCfT5aOmK7CGdAGDo5spoXsc+8Z
oAwAn3OYMUdLKdb8LxvZwgeM9uBsu/K3
=NI9f
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list