# HG changeset patch # User Pierre-Yves David # Date 2019-09-02 14:28:43 # Node ID f75f47b3ea416b97ff42e725d50f5047f59e822e # Parent 2c74337e6483e59c1e66830eb90725cc350bda49 revlog: deprecate the use of `revision(..., raw=True)` We have an official `rawdata` function now. diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -1610,6 +1610,10 @@ class revlog(object): treated as raw data when applying flag transforms. 'raw' should be set to True when generating changegroups or in debug commands. """ + if raw: + msg = ('revlog.revision(..., raw=True) is deprecated, ' + 'use revlog.rawdata(...)') + util.nouideprecwarn(msg, '5.2', stacklevel=2) return self._revisiondata(nodeorrev, _df, raw=raw) def _revisiondata(self, nodeorrev, _df=None, raw=False):