flagprocessors: use _processflagsread in simple cases
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Aug 2019 19:10:15 +0200
changeset 42877 a3665eed228f
parent 42876 db4af1cb128a
child 42878 1ebf1a1e14dd
flagprocessors: use _processflagsread in simple cases When there are no ambiguity regarding the `raw` value, we can simply use the new method. Differential Revision: https://phab.mercurial-scm.org/D6802
hgext/remotefilelog/remotefilelog.py
--- a/hgext/remotefilelog/remotefilelog.py	Fri Aug 30 19:07:49 2019 +0200
+++ b/hgext/remotefilelog/remotefilelog.py	Fri Aug 30 19:10:15 2019 +0200
@@ -324,7 +324,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):