71
A **stream** is an iterable of (substream type, substream) pairs.
72
The **substream type** is a ``str`` that will be one of ``texts``,
73
``inventories``, ``inventory-deltas``, ``chk_bytes``, ``revisions`` or
74
``signatures``. A **substream** is a record stream. The format of those
75
records depends on the repository format being streamed, except for
76
``inventory-deltas`` records which are format-independent.
78
A stream source can be constructed with ``repo._get_source(to_format)``,
79
and it provides a ``get_stream(search)`` method (among others). A stream
80
sink can be constructed with ``repo._get_sink()``, and provides an
81
``insert_stream(stream, src_format, resume_tokens)`` method (among