[PATCH 2 of 2] commands: support verbose help

Martin Geisler mg at lazybytes.net
Sun Oct 4 20:38:23 UTC 2009


# HG changeset patch
# User Martin Geisler <mg at lazybytes.net>
# Date 1254688467 -7200
# Node ID ee501301576f81a7dfd974392cc6b7128f460168
# Parent  15553d2b2f9a19a216a5ccab6a861706c3d15e6c
commands: support verbose help

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1478,7 +1478,8 @@
             doc = _("(no help text available)")
         if ui.quiet:
             doc = doc.splitlines()[0]
-        ui.write("\n%s\n" % minirst.format(doc, textwidth))
+        keep = ui.verbose and ['verbose'] or []
+        ui.write("\n%s\n" % minirst.format(doc, textwidth, keep=keep))
 
         if not ui.quiet:
             # options



More information about the Mercurial-devel mailing list