Rev 5429: (spiv) Remove some cruft apparently leftover from previous refactorings of in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Thu Sep 16 06:45:49 BST 2010
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 5429 [merge]
revision-id: pqm at pqm.ubuntu.com-20100916054547-2zydmfmm1wsux8xj
parent: pqm at pqm.ubuntu.com-20100916042623-g4puxjwcv8lg2c5d
parent: andrew.bennetts at canonical.com-20100914025453-7z3v74ewkppj8lrj
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2010-09-16 06:45:47 +0100
message:
(spiv) Remove some cruft apparently leftover from previous refactorings of
InterDifferingSerializer. (Andrew Bennetts)
modified:
bzrlib/fetch.py fetch.py-20050818234941-26fea6105696365d
bzrlib/repository.py rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'bzrlib/fetch.py'
--- a/bzrlib/fetch.py 2010-05-13 10:08:32 +0000
+++ b/bzrlib/fetch.py 2010-09-14 02:54:53 +0000
@@ -252,11 +252,6 @@
return [('texts', new_roots_stream)]
-def _get_rich_root_heads_graph(source_repo, revision_ids):
- """Get a Graph object suitable for asking heads() for new rich roots."""
- return
-
-
def _new_root_data_stream(
root_keys_to_create, rev_id_to_root_id_map, parent_map, repo, graph=None):
"""Generate a texts substream of synthesised root entries.
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py 2010-08-25 02:16:31 +0000
+++ b/bzrlib/repository.py 2010-09-14 02:54:53 +0000
@@ -3853,15 +3853,13 @@
basis_id, delta, current_revision_id, parents_parents)
cache[current_revision_id] = parent_tree
- def _fetch_batch(self, revision_ids, basis_id, cache, a_graph=None):
+ def _fetch_batch(self, revision_ids, basis_id, cache):
"""Fetch across a few revisions.
:param revision_ids: The revisions to copy
:param basis_id: The revision_id of a tree that must be in cache, used
as a basis for delta when no other base is available
:param cache: A cache of RevisionTrees that we can use.
- :param a_graph: A Graph object to determine the heads() of the
- rich-root data stream.
:return: The revision_id of the last converted tree. The RevisionTree
for it will be in cache
"""
@@ -3935,7 +3933,7 @@
if root_keys_to_create:
root_stream = _mod_fetch._new_root_data_stream(
root_keys_to_create, self._revision_id_to_root_id, parent_map,
- self.source, graph=a_graph)
+ self.source)
to_texts.insert_record_stream(root_stream)
to_texts.insert_record_stream(from_texts.get_record_stream(
text_keys, self.target._format._fetch_order,
@@ -3998,11 +3996,7 @@
cache[basis_id] = basis_tree
del basis_tree # We don't want to hang on to it here
hints = []
- if self._converting_to_rich_root and len(revision_ids) > 100:
- a_graph = _mod_fetch._get_rich_root_heads_graph(self.source,
- revision_ids)
- else:
- a_graph = None
+ a_graph = None
for offset in range(0, len(revision_ids), batch_size):
self.target.start_write_group()
@@ -4010,8 +4004,7 @@
pb.update('Transferring revisions', offset,
len(revision_ids))
batch = revision_ids[offset:offset+batch_size]
- basis_id = self._fetch_batch(batch, basis_id, cache,
- a_graph=a_graph)
+ basis_id = self._fetch_batch(batch, basis_id, cache)
except:
self.source._safe_to_return_from_cache = False
self.target.abort_write_group()
More information about the bazaar-commits
mailing list