Mercurial > public > mercurial-scm > hg-stable
diff tests/flagprocessorext.py @ 42990: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/flagprocessorext.py Tue Sep 03 23:51:17 2019 +0200 +++ b/tests/flagprocessorext.py Wed Sep 04 00:53:27 2019 +0200 @@ -30,19 +30,19 @@ def bypass(self, text): return False -def noopdonothing(self, text): +def noopdonothing(self, text, sidedata): return (text, True) def noopdonothingread(self, text): return (text, True, {}) -def b64encode(self, text): +def b64encode(self, text, sidedata): return (base64.b64encode(text), False) def b64decode(self, text): return (base64.b64decode(text), True, {}) -def gzipcompress(self, text): +def gzipcompress(self, text, sidedata): return (zlib.compress(text), False) def gzipdecompress(self, text):