Mercurial > hg
changeset 16855:57a5ac98f9b7
help: fix keyword search output for extension commands
This patch fixes the help keyword search "hg help -k" to show correct results
in the section listing extension commands.
author | Olav Reinert <seroton10@gmail.com> |
---|---|
date | Sun, 03 Jun 2012 17:49:04 +0200 |
parents | d71ada5a6a33 |
children | 241a32942c7a |
files | mercurial/help.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/help.py Sat Jun 02 11:28:43 2012 +0200 +++ b/mercurial/help.py Sun Jun 03 17:49:04 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('^') - results['extensioncommands'].append( - (cmdname, _(getattr(cmd, '__doc__', '')))) + cmddoc=getattr(mod, '__doc__', '').splitlines()[0] + results['extensioncommands'].append((cmdname, _(cmddoc))) return results def loaddoc(topic):