changeset 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
files mercurial/revlogutils/sidedata.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlogutils/sidedata.py	Wed Sep 04 01:20:54 2019 +0200
+++ b/mercurial/revlogutils/sidedata.py	Wed Sep 04 03:19:58 2019 +0200
@@ -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