diff mercurial/revlogutils/deltas.py @ 42994: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 1ebf1a1e14dd
children 2372284d9457
line wrap: on
line diff
--- a/mercurial/revlogutils/deltas.py	Sat Sep 07 00:11:58 2019 +0200
+++ b/mercurial/revlogutils/deltas.py	Sat Sep 07 00:16:32 2019 +0200
@@ -33,6 +33,10 @@
     util,
 )
 
+from . import (
+    flagutil,
+)
+
 # maximum <delta-chain-data>/<revision-text-length> ratio
 LIMIT_DELTA2TEXT = 2
 
@@ -521,7 +525,7 @@
         fulltext = mdiff.patch(basetext, delta)
 
     try:
-        validatehash = revlog._processflagsraw(fulltext, flags)
+        validatehash = flagutil.processflagsraw(revlog, fulltext, flags)
         if validatehash:
             revlog.checkhash(fulltext, expectednode, p1=p1, p2=p2)
         if flags & REVIDX_ISCENSORED: