Mercurial > public > mercurial-scm > hg
comparison mercurial/revlogutils/sidedata.py @ 43036:e8bc4c3d9a0b
sidedata: add a function for _processflagsraw usage
Entry with side data cannot directly validate their rawtext
Differential Revision: https://phab.mercurial-scm.org/D6892
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 04 Sep 2019 03:19:58 +0200 |
parents | ea83abf95630 |
children | 142deb539ccf |
comparison
equal
deleted
inserted
replaced
43035:ea83abf95630 | 43036:e8bc4c3d9a0b |
---|---|
71 raise error.SidedataHashError(key, storeddigest, readdigest) | 71 raise error.SidedataHashError(key, storeddigest, readdigest) |
72 sidedata[key] = entrytext | 72 sidedata[key] = entrytext |
73 dataoffset = nextdataoffset | 73 dataoffset = nextdataoffset |
74 text = text[dataoffset:] | 74 text = text[dataoffset:] |
75 return text, True, sidedata | 75 return text, True, sidedata |
76 | |
77 def sidedatarawprocessor(rl, text): | |
78 # side data modifies rawtext and prevent rawtext hash validation | |
79 return False |