# HG changeset patch # User Matt Mackall # Date 1165357736 21600 # Node ID 58133ba5847d638fa3cf5e38758f362a58f01b52 # Parent 17a11f4ff26037a4aaf3e4c529a3e8c3ebf0a570 Allow topics to be callables diff -r 17a11f4ff260 -r 58133ba5847d mercurial/commands.py --- 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())