comparison hgext/remotefilelog/remotefilelog.py @ 42877:a3665eed228f

flagprocessors: use _processflagsread in simple cases When there are no ambiguity regarding the `raw` value, we can simply use the new method. Differential Revision: https://phab.mercurial-scm.org/D6802
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Aug 2019 19:10:15 +0200
parents db4af1cb128a
children a45d670c2bfc
comparison
equal deleted inserted replaced
42876:db4af1cb128a 42877:a3665eed228f
322 if raw: 322 if raw:
323 return rawtext 323 return rawtext
324 flags = store.getmeta(self.filename, node).get(constants.METAKEYFLAG, 0) 324 flags = store.getmeta(self.filename, node).get(constants.METAKEYFLAG, 0)
325 if flags == 0: 325 if flags == 0:
326 return rawtext 326 return rawtext
327 text, verifyhash = self._processflags(rawtext, flags, 'read') 327 text, verifyhash = self._processflagsread(rawtext, flags)
328 return text 328 return text
329 329
330 def rawdata(self, node): 330 def rawdata(self, node):
331 return self.revision(node, raw=False) 331 return self.revision(node, raw=False)
332 332