~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to groupcompress.py

Update for current index2 changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    sha_strings,
39
39
    split_lines,
40
40
    )
41
 
from bzrlib.plugins.index2.repofmt import InMemoryBTree
 
41
from bzrlib.plugins.index2.btree_index import BTreeBuilder
42
42
from bzrlib.versionedfile import (
43
43
    adapter_registry,
44
44
    AbsentContentFactory,
227
227
        ref_length = 0
228
228
        if graph:
229
229
            ref_length += 1
230
 
        graph_index = InMemoryBTree(reference_lists=ref_length,
 
230
        graph_index = BTreeBuilder(reference_lists=ref_length,
231
231
            key_elements=keylength)
232
232
        stream = transport.open_write_stream('newpack')
233
233
        writer = pack.ContainerWriter(stream.write)