Patchwork D6804: revlog: stop using `_processflags` directly

login
register
mail settings
Submitter phabricator
Date Sept. 7, 2019, 9:27 a.m.
Message ID <differential-rev-PHID-DREV-nctlbvwoqlqxqkek5drr-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41511/
State Superseded
Headers show

Comments

phabricator - Sept. 7, 2019, 9:27 a.m.
marmoute created this revision.
marmoute added reviewers: yuja, durin42.
Herald added a reviewer: indygreg.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  We now use the specialized versions.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -1645,7 +1645,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: