changeset 42881:519b45603880

flagprocessors: deprecate _processflags People should use the specialized version instead now. Differential Revision: https://phab.mercurial-scm.org/D6806
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 07 Sep 2019 10:06:32 -0700
parents 38c62272f462
children 3bed541aa65d
files mercurial/revlogutils/flagutil.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlogutils/flagutil.py	Mon Sep 02 17:06:15 2019 +0200
+++ b/mercurial/revlogutils/flagutil.py	Sat Sep 07 10:06:32 2019 -0700
@@ -91,6 +91,8 @@
 
     def _processflags(self, text, flags, operation, raw=False):
         """deprecated entry point to access flag processors"""
+        msg = ('_processflag(...) use the specialized variant')
+        util.nouideprecwarn(msg, '5.2', stacklevel=2)
         if raw:
             return text, self._processflagsraw(text, flags)
         elif operation == 'read':