33ac6a72308a — Boris Feld 4.7 5 years ago
revlog: fix descendant deprecated method

Fix the descendant deprecated method introduced earlier in this cycle.

This was caught by Yuya, thank you.
1 files changed, 2 insertions(+), 2 deletions(-)

M mercurial/revlog.py
M mercurial/revlog.py +2 -2
@@ 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):