Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 42989:36a0a1951d64
flagprocessors: add a `sidedata` parameters to _processflagswrite
To read sidedata using flagprocessors, we need flag processors to store them. So
we pass this information to the flag processing layer.
Differential Revision: https://phab.mercurial-scm.org/D6815
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 03 Sep 2019 23:51:17 +0200 |
parents | 33532939c667 |
children | f4caf910669e |
line wrap: on
line diff
--- a/mercurial/revlog.py Tue Sep 03 23:51:34 2019 +0200 +++ b/mercurial/revlog.py Tue Sep 03 23:51:17 2019 +0200 @@ -1842,7 +1842,8 @@ if flags: node = node or self.hash(text, p1, p2) - rawtext, validatehash = self._processflagswrite(text, flags) + rawtext, validatehash = self._processflagswrite(text, flags, + sidedata=sidedata) # If the flag processor modifies the revision data, ignore any provided # cachedelta.