/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to fetch.py

use insert_record_stream rather than add_lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
from bzrlib.tsort import (
61
61
    topo_sort,
62
62
    )
 
63
from bzrlib.versionedfile import (
 
64
    FulltextContentFactory,
 
65
    )
63
66
 
64
67
from bzrlib.plugins.git.converter import (
65
68
    BazaarObjectStore,
190
193
        ie.revision = revision_id
191
194
        assert file_id is not None
192
195
        assert ie.revision is not None
193
 
        texts.add_lines((file_id, ie.revision), tuple(parent_keys),
194
 
            osutils.split_lines(blob.data))
 
196
        texts.insert_record_stream([FulltextContentFactory((file_id, ie.revision), tuple(parent_keys), ie.text_sha1, blob.data)])
195
197
        shamap = [(hexsha, "blob", (ie.file_id, ie.revision))]
196
198
    else:
197
199
        shamap = []