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

login
register
mail settings
Submitter Boris Feld
Date Aug. 14, 2018, 1:35 p.m.
Message ID <a99d5242c084dace8bf3.1534253713@FB-lair>
Download mbox | patch
Permalink /patch/33714/
State Accepted
Headers show

Comments

Boris Feld - Aug. 14, 2018, 1:35 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@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.

Patch

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