# HG changeset patch # User Pierre-Yves David <pierre-yves.david@octobus.net> # Date 1567559998 -7200 # Wed Sep 04 03:19:58 2019 +0200 # Node ID e8bc4c3d9a0b85720c3dbcb930cf458765f73616 # Parent ea83abf9563008196e960141d2ed47ba87eefb1a sidedata: add a function for _processflagsraw usage Entry with side data cannot directly validate their rawtext Differential Revision: https://phab.mercurial-scm.org/D6892 diff --git a/mercurial/revlogutils/sidedata.py b/mercurial/revlogutils/sidedata.py --- a/mercurial/revlogutils/sidedata.py +++ b/mercurial/revlogutils/sidedata.py @@ -73,3 +73,7 @@ dataoffset = nextdataoffset text = text[dataoffset:] return text, True, sidedata + +def sidedatarawprocessor(rl, text): + # side data modifies rawtext and prevent rawtext hash validation + return False