summaryrefslogtreecommitdiff
path: root/revision_store.py
diff options
context:
space:
mode:
authorIan Clatworthy <ian.clatworthy@internode.on.net>2009-03-05 17:28:57 +1000
committerIan Clatworthy <ian.clatworthy@internode.on.net>2009-03-05 17:28:57 +1000
commitbaa392c95b44dc8790241f7afe63342f94975a4a (patch)
treefcf418eb6589aa67ecab46f35ef2e48c8a9e0119 /revision_store.py
parent8e94ac6a1ee17b0e73aa66f0b0308487ab75eb24 (diff)
downloadbzr-fastimport-baa392c95b44dc8790241f7afe63342f94975a4a.tar.gz
set maximum_size & key_width for initial parent_id_basename_to_file_id map
Diffstat (limited to 'revision_store.py')
-rw-r--r--revision_store.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/revision_store.py b/revision_store.py
index 09476f9..a795931 100644
--- a/revision_store.py
+++ b/revision_store.py
@@ -45,9 +45,9 @@ class AbstractRevisionStore(object):
inv = self._init_chk_inventory(revision_id, inventory.ROOT_ID)
else:
inv = inventory.Inventory(revision_id=revision_id)
- if self.expects_rich_root():
- # The very first root needs to have the right revision
- inv.root.revision = revision_id
+ if self.expects_rich_root():
+ # The very first root needs to have the right revision
+ inv.root.revision = revision_id
return inv
def _init_chk_inventory(self, revision_id, root_id):
@@ -70,6 +70,9 @@ class AbstractRevisionStore(object):
if parent_id_basename_index:
inv.parent_id_basename_to_file_id = chk_map.CHKMap(chk_store,
None, search_key_func)
+ inv.parent_id_basename_to_file_id._root_node.set_maximum_size(
+ maximum_size)
+ inv.parent_id_basename_to_file_id._root_node._key_width = 2
return inv
def get_inventory(self, revision_id):