diff tests/test-revlog-raw.py @ 42988:f4caf910669e

flagprocessors: writetransform function take side data as parameter (API) If we want some flag processors to be able to store sidedata it needs to be actually fed that data. Differential Revision: https://phab.mercurial-scm.org/D6816
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 04 Sep 2019 00:53:27 +0200
parents bd5858c28bbe
children 2372284d9457
line wrap: on
line diff
--- a/tests/test-revlog-raw.py	Tue Sep 03 23:51:17 2019 +0200
+++ b/tests/test-revlog-raw.py	Wed Sep 04 00:53:27 2019 +0200
@@ -47,7 +47,7 @@
     text = rawtext[len(_extheader):].replace(b'i', b'1')
     return text, True, {}
 
-def writeprocessor(self, text):
+def writeprocessor(self, text, sidedata):
     # False: the returned rawtext shouldn't be used to verify hash
     rawtext = _extheader + text.replace(b'1', b'i')
     return rawtext, False
@@ -262,7 +262,7 @@
 
         # Verify text, rawtext, and rawsize
         if isext:
-            rawtext = writeprocessor(None, text)[0]
+            rawtext = writeprocessor(None, text, {})[0]
         else:
             rawtext = text
         if rlog.rawsize(rev) != len(rawtext):