# HG changeset patch
# User Matt Harbison <matt_harbi...@yahoo.com>
# Date 1517633539 18000
#      Fri Feb 02 23:52:19 2018 -0500
# Node ID b71a66ddae5be734a660be91aa6ceadcff59c541
# Parent  a6c740bc66e17962642dc9ad87ce0ca4769f1947
obsutil: drop deprecated methods (API)

.. api::

   The following deprecated methods have been removed from obsutil:
   marker.precnode() and allprecursors().  Use marker.prednode() and
   allpredecessors() instead.

diff --git a/mercurial/obsutil.py b/mercurial/obsutil.py
--- a/mercurial/obsutil.py
+++ b/mercurial/obsutil.py
@@ -33,12 +33,6 @@
             return False
         return self._data == other._data
 
-    def precnode(self):
-        msg = ("'marker.precnode' is deprecated, "
-               "use 'marker.prednode'")
-        util.nouideprecwarn(msg, '4.4')
-        return self.prednode()
-
     def prednode(self):
         """Predecessor changeset node identifier"""
         return self._data[0]
@@ -106,15 +100,6 @@
             else:
                 stack.append(precnodeid)
 
-def allprecursors(*args, **kwargs):
-    """ (DEPRECATED)
-    """
-    msg = ("'obsutil.allprecursors' is deprecated, "
-           "use 'obsutil.allpredecessors'")
-    util.nouideprecwarn(msg, '4.4')
-
-    return allpredecessors(*args, **kwargs)
-
 def allpredecessors(obsstore, nodes, ignoreflags=0):
     """Yield node for every precursors of <nodes>.
 
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to