Mercurial > hg
comparison tests/simplestorerepo.py @ 42992:dff95420480f
flagprocessors: make `processflagsraw` a module level function
One more steps toward removing the mixin.
Differential Revision: https://phab.mercurial-scm.org/D6820
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 07 Sep 2019 00:16:32 +0200 |
parents | eb5048f8c533 |
children | 73288e7abe9b |
comparison
equal
deleted
inserted
replaced
42991:eb5048f8c533 | 42992:dff95420480f |
---|---|
289 | 289 |
290 path = b'/'.join([self._storepath, hex(node)]) | 290 path = b'/'.join([self._storepath, hex(node)]) |
291 rawtext = self._svfs.read(path) | 291 rawtext = self._svfs.read(path) |
292 | 292 |
293 if raw: | 293 if raw: |
294 validatehash = self._processflagsraw(rawtext, flags) | 294 validatehash = flagutil.processflagsraw(self, rawtext, flags) |
295 text = rawtext | 295 text = rawtext |
296 else: | 296 else: |
297 r = flagutil.processflagsread(self, rawtext, flags) | 297 r = flagutil.processflagsread(self, rawtext, flags) |
298 text, validatehash, sidedata = r | 298 text, validatehash, sidedata = r |
299 if validatehash: | 299 if validatehash: |