diff mercurial/commands.py @ 9142:63cfacb7917e

merge with crew-stable
author Martin Geisler <mg@lazybytes.net>
date Wed, 15 Jul 2009 17:44:47 +0200
parents 31177742f54a 98d90ad54749
children 9261667e9b82
line wrap: on
line diff
--- a/mercurial/commands.py	Tue Jul 14 18:00:37 2009 -0700
+++ b/mercurial/commands.py	Wed Jul 15 17:44:47 2009 +0200
@@ -1473,7 +1473,10 @@
             f = f.lstrip("^")
             if not ui.debugflag and f.startswith("debug"):
                 continue
-            doc = gettext(e[0].__doc__)
+            doc = e[0].__doc__
+            if doc and 'DEPRECATED' in doc and not ui.verbose:
+                continue
+            doc = gettext(doc)
             if not doc:
                 doc = _("(no help text available)")
             h[f] = doc.splitlines()[0].rstrip()