Mercurial > public > mercurial-scm > hg
diff mercurial/revlogutils/sidedata.py @ 43040:ba4072c0a911
sidedata: test we can successfully write sidedata
For now we just write them and rejoice on the lack of crashes.
Differential Revision: https://phab.mercurial-scm.org/D6896
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 09 Sep 2019 21:38:29 +0200 |
parents | 142deb539ccf |
children | c348d829d23a |
line wrap: on
line diff
--- a/mercurial/revlogutils/sidedata.py Fri Sep 27 16:40:07 2019 +0200 +++ b/mercurial/revlogutils/sidedata.py Mon Sep 09 21:38:29 2019 +0200 @@ -38,6 +38,17 @@ from .. import error +## sidedata type constant +# reserve a block for testing purposes. +SD_TEST1 = 1 +SD_TEST2 = 2 +SD_TEST3 = 3 +SD_TEST4 = 4 +SD_TEST5 = 5 +SD_TEST6 = 6 +SD_TEST7 = 7 + +# internal format constant SIDEDATA_HEADER = struct.Struct('>H') SIDEDATA_ENTRY = struct.Struct('>HL20s')