comparison hgext/lfs/wrapper.py @ 42988: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
comparison
equal deleted inserted replaced
42987:36a0a1951d64 42988:f4caf910669e
104 if hgmeta or text.startswith('\1\n'): 104 if hgmeta or text.startswith('\1\n'):
105 text = storageutil.packmeta(hgmeta, text) 105 text = storageutil.packmeta(hgmeta, text)
106 106
107 return (text, True, {}) 107 return (text, True, {})
108 108
109 def writetostore(self, text): 109 def writetostore(self, text, sidedata):
110 # hg filelog metadata (includes rename, etc) 110 # hg filelog metadata (includes rename, etc)
111 hgmeta, offset = storageutil.parsemeta(text) 111 hgmeta, offset = storageutil.parsemeta(text)
112 if offset and offset > 0: 112 if offset and offset > 0:
113 # lfs blob does not contain hg filelog metadata 113 # lfs blob does not contain hg filelog metadata
114 text = text[offset:] 114 text = text[offset:]