Patchwork [6,of,8] templatekw: drop the deprecated '{troubles}' keyword

login
register
mail settings
Submitter Matt Harbison
Date Feb. 3, 2018, 6:35 a.m.
Message ID <859ae990404c55b790e2.1517639702@Envy>
Download mbox | patch
Permalink /patch/27257/
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 1517633637 18000
#      Fri Feb 02 23:53:57 2018 -0500
# Node ID 859ae990404c55b790e297a17bd65ccb89cee9cb
# Parent  b71a66ddae5be734a660be91aa6ceadcff59c541
templatekw: drop the deprecated '{troubles}' keyword

Patch

diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -893,17 +893,6 @@ 
     """Integer. The width of the current terminal."""
     return repo.ui.termwidth()
 
-@templatekeyword('troubles')
-def showtroubles(repo, **args):
-    """List of strings. Evolution troubles affecting the changeset.
-    (DEPRECATED)
-    """
-    msg = ("'troubles' is deprecated, "
-           "use 'instabilities'")
-    repo.ui.deprecwarn(msg, '4.4')
-
-    return showinstabilities(repo=repo, **args)
-
 @templatekeyword('instabilities')
 def showinstabilities(**args):
     """List of strings. Evolution instabilities affecting the changeset.