Patchwork D6802: flagprocessors: use _processflagsread in simple cases

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

AFFECTED FILES
  hgext/remotefilelog/remotefilelog.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/remotefilelog/remotefilelog.py b/hgext/remotefilelog/remotefilelog.py
--- a/hgext/remotefilelog/remotefilelog.py
+++ b/hgext/remotefilelog/remotefilelog.py
@@ -325,7 +325,7 @@ 
         flags = store.getmeta(self.filename, node).get(constants.METAKEYFLAG, 0)
         if flags == 0:
             return rawtext
-        text, verifyhash = self._processflags(rawtext, flags, 'read')
+        text, verifyhash = self._processflagsread(rawtext, flags)
         return text
 
     def rawdata(self, node):