revlog: drop compatibility for `revlog.descendant` (API)
authorBoris Feld <boris.feld@octobus.net>
Tue, 14 Aug 2018 13:36:41 -0700
changeset 39079 18e866ae2a7d
parent 39078 48157f198a04
child 39080 5c99486fcfe1
revlog: drop compatibility for `revlog.descendant` (API) As advertised, the method is dropped in 4.8.
mercurial/revlog.py
--- a/mercurial/revlog.py	Tue Aug 14 13:36:11 2018 -0700
+++ b/mercurial/revlog.py	Tue Aug 14 13:36:41 2018 -0700
@@ -1707,11 +1707,6 @@
         a, b = self.rev(a), self.rev(b)
         return self.isancestorrev(a, b)
 
-    def descendant(self, a, b):
-        msg = 'revlog.descendant is deprecated, use revlog.isancestorrev'
-        util.nouideprecwarn(msg, '4.7')
-        return self.isancestorrev(a, b)
-
     def isancestorrev(self, a, b):
         """return True if revision a is an ancestor of revision b