Patchwork D6805: simplestorerepo: stop using `_processflags` directly

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

Comments

phabricator - Sept. 7, 2019, 5:08 p.m.
Closed by commit rHG38c62272f462: simplestorerepo: 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/D6805?vs=16410&id=16444

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

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

AFFECTED FILES
  tests/simplestorerepo.py

CHANGE DETAILS




To: marmoute, yuja, durin42, #hg-reviewers, indygreg
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)