Rev 3905: Change the code so that the GCPacker knows to set reuse_blocks=False. in http://bzr.arbash-meinel.com/branches/bzr/brisbane/lazy_gc_stream
John Arbash Meinel
john at arbash-meinel.com
Tue Mar 17 18:37:58 GMT 2009
At http://bzr.arbash-meinel.com/branches/bzr/brisbane/lazy_gc_stream
------------------------------------------------------------
revno: 3905
revision-id: john at arbash-meinel.com-20090317183751-uzqw7v9jdlvntbrj
parent: john at arbash-meinel.com-20090317182906-s7ynapnrcxj9i99s
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_gc_stream
timestamp: Tue 2009-03-17 13:37:51 -0500
message:
Change the code so that the GCPacker knows to set reuse_blocks=False.
-------------- next part --------------
=== modified file 'bzrlib/repofmt/groupcompress_repo.py'
--- a/bzrlib/repofmt/groupcompress_repo.py 2009-03-13 14:05:55 +0000
+++ b/bzrlib/repofmt/groupcompress_repo.py 2009-03-17 18:37:51 +0000
@@ -381,7 +381,9 @@
child_pb = ui.ui_factory.nested_progress_bar()
try:
stream = vf_to_stream(source_vf, keys, message, child_pb)
- target_vf.insert_record_stream(stream)
+ for _ in target_vf._insert_record_stream(stream,
+ reuse_blocks=False):
+ pass
finally:
child_pb.finished()
@@ -412,7 +414,9 @@
try:
for stream in self._get_chk_streams(source_vf, total_keys,
pb=child_pb):
- target_vf.insert_record_stream(stream)
+ for _ in target_vf._insert_record_stream(stream,
+ reuse_blocks=False):
+ pass
finally:
child_pb.finished()
More information about the bazaar-commits
mailing list