~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1770
1770
        :param index_to_packs: A dict mapping index objects to the transport
1771
1771
            and file names for obtaining data.
1772
1772
        :param writer: A tuple (pack.ContainerWriter, write_index) which
1773
 
            is contains the pack to write, and the index that reads from
1774
 
            it will be associated with.
 
1773
            contains the pack to write, and the index that reads from it will
 
1774
            be associated with.
1775
1775
        """
1776
1776
        if writer:
1777
1777
            self.container_writer = writer[0]
1784
1784
    def add_raw_records(self, sizes, raw_data):
1785
1785
        """Add raw knit bytes to a storage area.
1786
1786
 
1787
 
        The data is spooled to the container writer in one bytes record per
 
1787
        The data is spooled to the container writer in one bytes-record per
1788
1788
        raw data item.
1789
1789
 
1790
1790
        :param sizes: An iterable containing the size of each raw data segment.