simplestorerepo: stop using `_processflags` directly
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 02 Sep 2019 17:06:15 +0200
changeset 42880 38c62272f462
parent 42879 4a3efe0febb5
child 42881 519b45603880
simplestorerepo: stop using `_processflags` directly We now use the specialized versions. Differential Revision: https://phab.mercurial-scm.org/D6805
tests/simplestorerepo.py
--- a/tests/simplestorerepo.py	Mon Sep 02 17:05:52 2019 +0200
+++ b/tests/simplestorerepo.py	Mon Sep 02 17:06:15 2019 +0200
@@ -290,7 +290,11 @@
         path = b'/'.join([self._storepath, hex(node)])
         rawtext = self._svfs.read(path)
 
-        text, validatehash = self._processflags(rawtext, flags, 'read', raw=raw)
+        if raw:
+            validatehash = self._processflagsraw(rawtext, flags)
+            text = rawtext
+        else:
+            text, validatehash = self._processflagsread(rawtext, flags)
         if validatehash:
             self.checkhash(text, node, rev=rev)