revlog: fix descendant deprecated method
Fix the descendant deprecated method introduced earlier in this cycle.
This was caught by Yuya, thank you.
--- a/mercurial/revlog.py Tue Jul 31 13:46:57 2018 -0700
+++ b/mercurial/revlog.py Wed Aug 01 10:23:48 2018 +0200
@@ -1701,8 +1701,8 @@
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):