Patchwork D6804: revlog: stop using `_processflags` directly

login
register
mail settings
Submitter phabricator
Date Sept. 7, 2019, 5:08 p.m.
Message ID <549720ee076b9defbdf317eafa279bf9@localhost.localdomain>
Download mbox | patch
Permalink /patch/41556/
State Not Applicable
Headers show

Comments

phabricator - Sept. 7, 2019, 5:08 p.m.
Closed by commit rHG4a3efe0febb5: revlog: stop using `_processflags` directly (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6804?vs=16409&id=16443

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6804/new/

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
@@ -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: