mercurial/help.py
changeset 16942 87882c8753d4
parent 16884 4fd1f1d7569b
child 17187 293dd81e4601
--- a/mercurial/help.py	Tue Jun 12 14:18:18 2012 +0200
+++ b/mercurial/help.py	Thu Jun 07 01:42:50 2012 +0200
@@ -107,8 +107,8 @@
         for cmd, entry in getattr(mod, 'cmdtable', {}).iteritems():
             if kw in cmd or (len(entry) > 2 and lowercontains(entry[2])):
                 cmdname = cmd.split('|')[0].lstrip('^')
-                if mod.__doc__:
-                    cmddoc = gettext(mod.__doc__).splitlines()[0]
+                if entry[0].__doc__:
+                    cmddoc = gettext(entry[0].__doc__).splitlines()[0]
                 else:
                     cmddoc = _('(no help text available)')
                 results['extensioncommands'].append((cmdname, cmddoc))