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
--- 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)