mercurial/revlog.py
branchstable
changeset 38763 33ac6a72308a
parent 38736 93777d16a25d
child 38777 83a505b5cf85
child 39139 3730b779ed5b
--- 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):