revlog: fix descendant deprecated method stable 4.7
authorBoris Feld <boris.feld@octobus.net>
Wed, 01 Aug 2018 10:23:48 +0200
branchstable
changeset 38763 33ac6a72308a
parent 38762 fe3ca1e6f786
child 38764 d55e53702ef9
revlog: fix descendant deprecated method Fix the descendant deprecated method introduced earlier in this cycle. This was caught by Yuya, thank you.
mercurial/revlog.py
--- 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):