[PATCH 4 of 8] revset: drop deprecated evolution predicates

Matt Harbison mharbison72 at gmail.com
Sat Feb 3 01:35:00 EST 2018


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1517633305 18000
#      Fri Feb 02 23:48:25 2018 -0500
# Node ID a6c740bc66e17962642dc9ad87ce0ca4769f1947
# Parent  14e7553aa4b1e94e3ff6ac06bb26e7950daf0009
revset: drop deprecated evolution predicates

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -509,14 +509,6 @@
     return subset.filter(lambda r: c(r) or getbranch(r) in b,
                          condrepr=lambda: '<branch %r>' % sorted(b))
 
- at predicate('bumped()', safe=True)
-def bumped(repo, subset, x):
-    msg = ("'bumped()' is deprecated, "
-           "use 'phasedivergent()'")
-    repo.ui.deprecwarn(msg, '4.4')
-
-    return phasedivergent(repo, subset, x)
-
 @predicate('phasedivergent()', safe=True)
 def phasedivergent(repo, subset, x):
     """Mutable changesets marked as successors of public changesets.
@@ -770,14 +762,6 @@
     return subset.filter(dests.__contains__,
                          condrepr=lambda: '<destination %r>' % sorted(dests))
 
- at predicate('divergent()', safe=True)
-def divergent(repo, subset, x):
-    msg = ("'divergent()' is deprecated, "
-           "use 'contentdivergent()'")
-    repo.ui.deprecwarn(msg, '4.4')
-
-    return contentdivergent(repo, subset, x)
-
 @predicate('contentdivergent()', safe=True)
 def contentdivergent(repo, subset, x):
     """
@@ -2031,14 +2015,6 @@
 def tagged(repo, subset, x):
     return tag(repo, subset, x)
 
- at predicate('unstable()', safe=True)
-def unstable(repo, subset, x):
-    msg = ("'unstable()' is deprecated, "
-           "use 'orphan()'")
-    repo.ui.deprecwarn(msg, '4.4')
-
-    return orphan(repo, subset, x)
-
 @predicate('orphan()', safe=True)
 def orphan(repo, subset, x):
     """Non-obsolete changesets with obsolete ancestors. (EXPERIMENTAL)


More information about the Mercurial-devel mailing list