Mercurial > public > mercurial-scm > hg
comparison mercurial/revlogutils/flagutil.py @ 42983:a45d670c2bfc
flagprocessors: return sidedata map in `_processflagsread`
Right now, flag processors does not return sidedata, by they will. So, we
prepare the caller to receive it.
Differential Revision: https://phab.mercurial-scm.org/D6811
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 03 Sep 2019 22:55:04 +0200 |
parents | 3bed541aa65d |
children | 66dc5a522f37 |
comparison
equal
deleted
inserted
replaced
42982:9d62f9fa332f | 42983:a45d670c2bfc |
---|---|
116 | 116 |
117 Returns a 2-tuple of ``(text, validatehash)`` where ``text`` is the | 117 Returns a 2-tuple of ``(text, validatehash)`` where ``text`` is the |
118 processed text and ``validatehash`` is a bool indicating whether the | 118 processed text and ``validatehash`` is a bool indicating whether the |
119 returned text should be checked for hash integrity. | 119 returned text should be checked for hash integrity. |
120 """ | 120 """ |
121 return self._processflagsfunc(text, flags, 'read') | 121 text, vhash = self._processflagsfunc(text, flags, 'read') |
122 return text, vhash, {} | |
122 | 123 |
123 def _processflagswrite(self, text, flags): | 124 def _processflagswrite(self, text, flags): |
124 """Inspect revision data flags and applies write transformations defined | 125 """Inspect revision data flags and applies write transformations defined |
125 by registered flag processors. | 126 by registered flag processors. |
126 | 127 |