D6803: flagprocessors: use _processflagsraw in easy cases

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sat Sep 7 09:27:28 UTC 2019


marmoute created this revision.
marmoute added reviewers: yuja, durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  When there are no ambiguity regarding the `raw` value, we can simply use the new
  method.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6803

AFFECTED FILES
  mercurial/revlogutils/deltas.py

CHANGE DETAILS

diff --git a/mercurial/revlogutils/deltas.py b/mercurial/revlogutils/deltas.py
--- a/mercurial/revlogutils/deltas.py
+++ b/mercurial/revlogutils/deltas.py
@@ -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:



To: marmoute, yuja, durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list