251
253
# yet, and are unlikely to in non-rich-root environments anyway.
252
254
root_id_order.sort(key=operator.itemgetter(0))
253
255
# Create a record stream containing the roots to create.
256
258
new_roots_stream = _new_root_data_stream(
257
259
root_id_order, rev_id_to_root_id, parent_map, self.source, graph)
258
260
return [('texts', new_roots_stream)]
261
272
def _new_root_data_stream(
262
273
root_keys_to_create, rev_id_to_root_id_map, parent_map, repo, graph=None):
263
274
"""Generate a texts substream of synthesised root entries.