comparison mercurial/commands.py @ 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 302ffecdd726
comparison
equal deleted inserted replaced
3798:17a11f4ff260 3799:58133ba5847d
1153 1153
1154 # description 1154 # description
1155 doc = help.helptable[v] 1155 doc = help.helptable[v]
1156 if not doc: 1156 if not doc:
1157 doc = _("(No help text available)") 1157 doc = _("(No help text available)")
1158 if callable(doc):
1159 doc = doc()
1158 1160
1159 ui.write("%s\n" % header) 1161 ui.write("%s\n" % header)
1160 ui.write("%s\n" % doc.rstrip()) 1162 ui.write("%s\n" % doc.rstrip())
1161 1163
1162 def helpext(name): 1164 def helpext(name):