/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/bzr/_knit_load_data_py.py

  • Committer: Jelmer Vernooij
  • Date: 2019-05-29 03:22:34 UTC
  • mfrom: (7303 work)
  • mto: This revision was merged to the branch mainline in revision 7306.
  • Revision ID: jelmer@jelmer.uk-20190529032234-mt3fuws8gq03tapi
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
            raise KnitCorrupt(kndx._filename, "line %r: %s" % (rec, e))
65
65
 
66
66
        version_id, options, pos, size = rec[:4]
67
 
        version_id = version_id
68
67
        try:
69
68
            pos = int(pos)
70
69
        except ValueError as e:
71
70
            raise KnitCorrupt(kndx._filename,
72
 
                                     "invalid position on line %r: %s"
73
 
                                     % (rec, e))
 
71
                              "invalid position on line %r: %s"
 
72
                              % (rec, e))
74
73
        try:
75
74
            size = int(size)
76
75
        except ValueError as e:
77
76
            raise KnitCorrupt(kndx._filename,
78
 
                                     "invalid size on line %r: %s"
79
 
                                     % (rec, e))
 
77
                              "invalid size on line %r: %s"
 
78
                              % (rec, e))
80
79
 
81
80
        # See kndx._cache_version
82
81
        # only want the _history index to reference the 1st