~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

Update the insert_record_stream contract to error if an absent record is provided.

Show diffs side-by-side

added added

removed removed

Lines of Context:
338
338
        """
339
339
        adapters = {}
340
340
        for record in stream:
 
341
            # Raise an error when a record is missing.
 
342
            if record.storage_kind == 'absent':
 
343
                raise RevisionNotPresent([record.key[0]], self)
341
344
            # adapt to non-tuple interface
342
345
            parents = [parent[0] for parent in record.parents]
343
346
            if record.storage_kind == 'fulltext':