diff mercurial/revlogutils/flagutil.py @ 42985:bd5858c28bbe

flagprocessors: have the read transform function return side data (API) This makes it possible for flag processors to -read- flag data. Differential Revision: https://phab.mercurial-scm.org/D6813
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 04 Sep 2019 00:34:03 +0200
parents 66dc5a522f37
children 36a0a1951d64
line wrap: on
line diff
--- a/mercurial/revlogutils/flagutil.py	Wed Sep 04 00:13:45 2019 +0200
+++ b/mercurial/revlogutils/flagutil.py	Wed Sep 04 00:34:03 2019 +0200
@@ -192,7 +192,8 @@
                     if operation == 'raw':
                         vhash = rawtransform(self, text)
                     elif operation == 'read':
-                        text, vhash = readtransform(self, text)
+                        text, vhash, s = readtransform(self, text)
+                        outsidedata.update(s)
                     else: # write operation
                         text, vhash = writetransform(self, text)
                 validatehash = validatehash and vhash