flagprocessors: use _processflagsraw in easy cases
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Aug 2019 19:13:12 +0200
changeset 42878 1ebf1a1e14dd
parent 42877 a3665eed228f
child 42879 4a3efe0febb5
flagprocessors: use _processflagsraw in easy cases When there are no ambiguity regarding the `raw` value, we can simply use the new method. Differential Revision: https://phab.mercurial-scm.org/D6803
mercurial/revlogutils/deltas.py
--- a/mercurial/revlogutils/deltas.py	Fri Aug 30 19:10:15 2019 +0200
+++ b/mercurial/revlogutils/deltas.py	Fri Aug 30 19:13:12 2019 +0200
@@ -521,8 +521,7 @@
         fulltext = mdiff.patch(basetext, delta)
 
     try:
-        res = revlog._processflags(fulltext, flags, 'read', raw=True)
-        fulltext, validatehash = res
+        validatehash = revlog._processflagsraw(fulltext, flags)
         if validatehash:
             revlog.checkhash(fulltext, expectednode, p1=p1, p2=p2)
         if flags & REVIDX_ISCENSORED: