~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_knit_load_data_py.py

  • Committer: John Arbash Meinel
  • Date: 2007-06-29 00:31:00 UTC
  • mto: This revision was merged to the branch mainline in revision 2614.
  • Revision ID: john@arbash-meinel.com-20070629003100-xthewxf3hpdes9ix
Add a test that KnitCorrupt is raised when parent strings are invalid.
And fix *both* implementations so that they do the right thing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
            # corrupt we can't asssume that no other rows referring to the
61
61
            # index of this record actually mean the subsequent uncorrupt
62
62
            # one, so we error.
63
 
            raise errors.KnitCorrupt(self._filename,
64
 
                "line %r: %s" % (rec, e))
 
63
            raise errors.KnitCorrupt(kndx._filename, "line %r: %s" % (rec, e))
65
64
 
66
65
        version_id, options, pos, size = rec[:4]
67
66
        version_id = version_id