comparison mercurial/revlogutils/flagutil.py @ 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 87a934684c3b
children 3bed541aa65d
comparison
equal deleted inserted replaced
42880:38c62272f462 42881:519b45603880
89 89
90 _flagserrorclass = error.RevlogError 90 _flagserrorclass = error.RevlogError
91 91
92 def _processflags(self, text, flags, operation, raw=False): 92 def _processflags(self, text, flags, operation, raw=False):
93 """deprecated entry point to access flag processors""" 93 """deprecated entry point to access flag processors"""
94 msg = ('_processflag(...) use the specialized variant')
95 util.nouideprecwarn(msg, '5.2', stacklevel=2)
94 if raw: 96 if raw:
95 return text, self._processflagsraw(text, flags) 97 return text, self._processflagsraw(text, flags)
96 elif operation == 'read': 98 elif operation == 'read':
97 return self._processflagsread(text, flags) 99 return self._processflagsread(text, flags)
98 else: # write operation 100 else: # write operation