D6892: sidedata: add a function for _processflagsraw usage

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Fri Sep 27 16:17:12 UTC 2019


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

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



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


More information about the Mercurial-devel mailing list