Patchwork [4,of,8] revset: drop deprecated evolution predicates

login
register
mail settings
Submitter Matt Harbison
Date Feb. 3, 2018, 6:35 a.m.
Message ID <a6c740bc66e17962642d.1517639700@Envy>
Download mbox | patch
Permalink /patch/27256/
State Accepted
Headers show

Comments

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

Patch

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))
 
-@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))
 
-@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)
 
-@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)