revlog: stop using `_processflags` directly
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 02 Sep 2019 17:05:52 +0200
changeset 42879 4a3efe0febb5
parent 42878 1ebf1a1e14dd
child 42880 38c62272f462
revlog: stop using `_processflags` directly We now use the specialized versions. Differential Revision: https://phab.mercurial-scm.org/D6804
mercurial/revlog.py
--- a/mercurial/revlog.py	Fri Aug 30 19:13:12 2019 +0200
+++ b/mercurial/revlog.py	Mon Sep 02 17:05:52 2019 +0200
@@ -1649,7 +1649,11 @@
             # no extra flags set, no flag processor runs, text = rawtext
             return rawtext
 
-        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)
         if not validated: