mercurial/commands.py
changeset 3799 58133ba5847d
parent 3798 17a11f4ff260
child 3804 302ffecdd726
--- 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())