changeset 3796: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	Tue Dec 05 16:06:13 2006 -0600
+++ b/mercurial/commands.py	Tue Dec 05 16:28:56 2006 -0600
@@ -1155,6 +1155,8 @@
         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())