~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Andrew Bennetts
  • Date: 2009-02-16 05:12:28 UTC
  • mto: (4002.1.9 suspend-write-group)
  • mto: This revision was merged to the branch mainline in revision 4025.
  • Revision ID: andrew.bennetts@canonical.com-20090216051228-bfsjg5hvvbtu7wg5
Fix test_insert_record_stream_delta_missing_basis_no_corruption to test what it claims to, and fix KnitVersionedFiles.get_record_stream to match the expected exception.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1478
1478
        # If there were any deltas which had a missing basis parent, error.
1479
1479
        if buffered_index_entries:
1480
1480
            from pprint import pformat
1481
 
            raise errors.BzrCheckError(
1482
 
                "record_stream refers to compression parents not in %r:\n%s"
1483
 
                % (self, pformat(sorted(buffered_index_entries.keys()))))
 
1481
            raise errors.RevisionNotPresent(
 
1482
                pformat(sorted(buffered_index_entries.keys())), '<?>')
1484
1483
 
1485
1484
    def iter_lines_added_or_present_in_keys(self, keys, pb=None):
1486
1485
        """Iterate over the lines in the versioned files from keys.