changeset 42876:db4af1cb128a

flagprocessors: use _processflagswrite for write operation There are no ambiguity for 'write' operation so it is simple to replace. Differential Revision: https://phab.mercurial-scm.org/D6801
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Aug 2019 19:07:49 +0200
parents 87a934684c3b
children a3665eed228f
files hgext/remotefilelog/remotefilelog.py mercurial/revlog.py tests/simplestorerepo.py
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/remotefilelog/remotefilelog.py	Fri Aug 30 18:54:36 2019 +0200
+++ b/hgext/remotefilelog/remotefilelog.py	Fri Aug 30 19:07:49 2019 +0200
@@ -135,7 +135,7 @@
             node = storageutil.hashrevisionsha1(text, p1, p2)
 
         meta, metaoffset = storageutil.parsemeta(text)
-        rawtext, validatehash = self._processflags(text, flags, 'write')
+        rawtext, validatehash = self._processflagswrite(text, flags)
         return self.addrawrevision(rawtext, transaction, linknode, p1, p2,
                                    node, flags, cachedelta,
                                    _metatuple=(meta, metaoffset))
--- a/mercurial/revlog.py	Fri Aug 30 18:54:36 2019 +0200
+++ b/mercurial/revlog.py	Fri Aug 30 19:07:49 2019 +0200
@@ -1823,7 +1823,7 @@
         if flags:
             node = node or self.hash(text, p1, p2)
 
-        rawtext, validatehash = self._processflags(text, flags, 'write')
+        rawtext, validatehash = self._processflagswrite(text, flags)
 
         # If the flag processor modifies the revision data, ignore any provided
         # cachedelta.
--- a/tests/simplestorerepo.py	Fri Aug 30 18:54:36 2019 +0200
+++ b/tests/simplestorerepo.py	Fri Aug 30 19:07:49 2019 +0200
@@ -452,7 +452,7 @@
         if flags:
             node = node or storageutil.hashrevisionsha1(text, p1, p2)
 
-        rawtext, validatehash = self._processflags(text, flags, 'write')
+        rawtext, validatehash = self._processflagswrite(text, flags)
 
         node = node or storageutil.hashrevisionsha1(text, p1, p2)