Rev 3830: Implement a 'gc-optimal' fetch possibility. in http://bzr.arbash-meinel.com/branches/bzr/brisbane/generic_fetch_ordering
John Arbash Meinel
john at arbash-meinel.com
Mon Feb 23 14:39:24 GMT 2009
At http://bzr.arbash-meinel.com/branches/bzr/brisbane/generic_fetch_ordering
------------------------------------------------------------
revno: 3830
revision-id: john at arbash-meinel.com-20090223143833-h1420x933pp3chva
parent: john at arbash-meinel.com-20090219181908-4u3mp535ah06iuj1
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: generic_fetch_ordering
timestamp: Mon 2009-02-23 08:38:33 -0600
message:
Implement a 'gc-optimal' fetch possibility.
-------------- next part --------------
=== modified file 'bzrlib/fetch.py'
--- a/bzrlib/fetch.py 2009-02-19 18:19:08 +0000
+++ b/bzrlib/fetch.py 2009-02-23 14:38:33 +0000
@@ -236,8 +236,11 @@
def _fetch_text_texts(self, text_keys, pb):
to_texts = self.to_repository.texts
from_texts = self.from_repository.texts
- text_stream = from_texts.get_record_stream(text_keys,
- self.to_repository._fetch_order,
+ if False and getattr(self.to_repository, '_fetch_gc_optimal', False):
+ fetch_order = 'gc-optimal'
+ else:
+ fetch_order = self.to_repository._fetch_order
+ text_stream = from_texts.get_record_stream(text_keys, fetch_order,
not self.to_repository._fetch_uses_deltas)
adapter = _pb_stream_adapter(pb, 'fetch text', len(text_keys),
text_stream)
More information about the bazaar-commits
mailing list