Mercurial > hg
comparison hgext/remotefilelog/remotefilelog.py @ 42987: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 | a04b2c010d03 |
comparison
equal
deleted
inserted
replaced
42986:33532939c667 | 42987:36a0a1951d64 |
---|---|
136 node = storageutil.hashrevisionsha1(text, p1, p2) | 136 node = storageutil.hashrevisionsha1(text, p1, p2) |
137 if sidedata is None: | 137 if sidedata is None: |
138 sidedata = {} | 138 sidedata = {} |
139 | 139 |
140 meta, metaoffset = storageutil.parsemeta(text) | 140 meta, metaoffset = storageutil.parsemeta(text) |
141 rawtext, validatehash = self._processflagswrite(text, flags) | 141 rawtext, validatehash = self._processflagswrite(text, flags, |
142 sidedata=sidedata) | |
142 return self.addrawrevision(rawtext, transaction, linknode, p1, p2, | 143 return self.addrawrevision(rawtext, transaction, linknode, p1, p2, |
143 node, flags, cachedelta, | 144 node, flags, cachedelta, |
144 _metatuple=(meta, metaoffset)) | 145 _metatuple=(meta, metaoffset)) |
145 | 146 |
146 def addrawrevision(self, rawtext, transaction, linknode, p1, p2, node, | 147 def addrawrevision(self, rawtext, transaction, linknode, p1, p2, node, |