Patchwork D6805: simplestorerepo: stop using `_processflags` directly

login
register
mail settings
Submitter phabricator
Date Sept. 7, 2019, 9:27 a.m.
Message ID <differential-rev-PHID-DREV-7xpupd4pjazmfdbzcq3y-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41509/
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 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/D6805

AFFECTED FILES
  tests/simplestorerepo.py

CHANGE DETAILS




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

Patch

diff --git a/tests/simplestorerepo.py b/tests/simplestorerepo.py
--- a/tests/simplestorerepo.py
+++ b/tests/simplestorerepo.py
@@ -290,7 +290,11 @@ 
         path = b'/'.join([self._storepath, hex(node)])
         rawtext = self._svfs.read(path)
 
-        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)