changeset 38017:5b60f7d652f2

extensions: drop dead code trying to exclude deprecated disabled commands Here 'ext' is a tuple, which means ext.__doc__ describes about the Python tuple type. Fixing this would break 'hg help glog', which currently shows some nice explanation, so this patch just removes the dead code. $ hg help glog 'glog' is provided by the following extension: graphlog command to view revision graphs from a shell (DEPRECATED) (use 'hg help extensions' for information on enabling extensions)
author Yuya Nishihara <yuya@tcha.org>
date Thu, 03 May 2018 18:13:43 +0900
parents 59f1e33f74a6
children b45f4c1532c0
files mercurial/extensions.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/extensions.py	Fri May 11 21:53:26 2018 +0900
+++ b/mercurial/extensions.py	Thu May 03 18:13:43 2018 +0900
@@ -696,7 +696,7 @@
             ext = findcmd(cmd, name, path)
             if ext:
                 break
-    if ext and 'DEPRECATED' not in ext.__doc__:
+    if ext:
         return ext
 
     raise error.UnknownCommand(cmd)