Patchwork D6892: sidedata: add a function for _processflagsraw usage

login
register
mail settings
Submitter phabricator
Date Sept. 27, 2019, 4:17 p.m.
Message ID <differential-rev-PHID-DREV-7y4c37ivyuoz4muauc5w-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41798/
State Superseded
Headers show

Comments

phabricator - Sept. 27, 2019, 4:17 p.m.
marmoute created this revision.
marmoute added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Entry with side data cannot directly validate their rawtext

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6892

AFFECTED FILES
  mercurial/revlogutils/sidedata.py

CHANGE DETAILS




To: marmoute, durin42, #hg-reviewers
Cc: mercurial-devel

Patch

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