[PATCH 2 of 2] compat: drop compatibility for `revlog.descendant`

Boris Feld boris.feld at octobus.net
Tue Aug 14 09:35:13 EDT 2018


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1534234159 -7200
#      Tue Aug 14 10:09:19 2018 +0200
# Node ID a99d5242c084dace8bf3d6a9b2ded7d39c68104a
# Parent  27efa73dcb8082e41923a3b834d92f505daa509d
# EXP-Topic compat-drop
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r a99d5242c084
compat: drop compatibility for `revlog.descendant`

As advertised, the method is dropped in 4.8.

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -1707,11 +1707,6 @@ class revlog(object):
         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
 


More information about the Mercurial-devel mailing list