# HG changeset patch # User Boris Feld # Date 2018-08-01 08:23:48 # Node ID 33ac6a72308a215e6086fbced347ec10aa963b0a # Parent fe3ca1e6f786c1ea8eadf8cff9057095dbb2d463 revlog: fix descendant deprecated method Fix the descendant deprecated method introduced earlier in this cycle. This was caught by Yuya, thank you. diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -1701,8 +1701,8 @@ class revlog(object): return self.isancestorrev(a, b) def descendant(self, a, b): - msg = (b'revlog.descendant is deprecated, use revlog.isancestorrev') - self._repo.ui.deprecwarn(msg, b'4.7') + msg = 'revlog.descendant is deprecated, use revlog.isancestorrev' + util.nouideprecwarn(msg, '4.7') return self.isancestorrev(a, b) def isancestorrev(self, a, b):