changeset 3799:58133ba5847d

Allow topics to be callables
author Matt Mackall <mpm@selenic.com>
date Tue, 05 Dec 2006 16:28:56 -0600
parents 17a11f4ff260
children 54fd4d3b4fce
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1155,6 +1155,8 @@ def help_(ui, name=None, with_version=Fa
         doc = help.helptable[v]
         if not doc:
             doc = _("(No help text available)")
+        if callable(doc):
+            doc = doc()
 
         ui.write("%s\n" % header)
         ui.write("%s\n" % doc.rstrip())