Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 46806:9ff4672c8c26
revlog: convert an Abort message to bytes
Flagged by pytype.
Differential Revision: https://phab.mercurial-scm.org/D10234
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 18 Mar 2021 18:57:21 -0400 |
parents | 6266d19556ad |
children | d4ba4d51f85f |
comparison
equal
deleted
inserted
replaced
46805:2b1b8f3e6510 | 46806:9ff4672c8c26 |
---|---|
3248 ) | 3248 ) |
3249 if entry[8] != 0 or entry[9] != 0: | 3249 if entry[8] != 0 or entry[9] != 0: |
3250 # rewriting entries that already have sidedata is not | 3250 # rewriting entries that already have sidedata is not |
3251 # supported yet, because it introduces garbage data in the | 3251 # supported yet, because it introduces garbage data in the |
3252 # revlog. | 3252 # revlog. |
3253 msg = "Rewriting existing sidedata is not supported yet" | 3253 msg = b"Rewriting existing sidedata is not supported yet" |
3254 raise error.Abort(msg) | 3254 raise error.Abort(msg) |
3255 entry = entry[:8] | 3255 entry = entry[:8] |
3256 entry += (current_offset, len(serialized_sidedata)) | 3256 entry += (current_offset, len(serialized_sidedata)) |
3257 | 3257 |
3258 fp.write(serialized_sidedata) | 3258 fp.write(serialized_sidedata) |