extensions: drop dead code trying to exclude deprecated disabled commands
authorYuya Nishihara <yuya@tcha.org>
Thu, 03 May 2018 18:13:43 +0900
changeset 37973 5b60f7d652f2
parent 37972 59f1e33f74a6
child 37974 b45f4c1532c0
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)
mercurial/extensions.py
--- 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)