Show More
@@ -107,8 +107,8 b' def topicmatch(kw):' | |||||
107 | for cmd, entry in getattr(mod, 'cmdtable', {}).iteritems(): |
|
107 | for cmd, entry in getattr(mod, 'cmdtable', {}).iteritems(): | |
108 | if kw in cmd or (len(entry) > 2 and lowercontains(entry[2])): |
|
108 | if kw in cmd or (len(entry) > 2 and lowercontains(entry[2])): | |
109 | cmdname = cmd.split('|')[0].lstrip('^') |
|
109 | cmdname = cmd.split('|')[0].lstrip('^') | |
110 |
if |
|
110 | if entry[0].__doc__: | |
111 |
cmddoc = gettext( |
|
111 | cmddoc = gettext(entry[0].__doc__).splitlines()[0] | |
112 | else: |
|
112 | else: | |
113 | cmddoc = _('(no help text available)') |
|
113 | cmddoc = _('(no help text available)') | |
114 | results['extensioncommands'].append((cmdname, cmddoc)) |
|
114 | results['extensioncommands'].append((cmdname, cmddoc)) |
@@ -775,3 +775,30 b' Test help hooks' | |||||
775 | $ hg help revsets | grep helphook |
|
775 | $ hg help revsets | grep helphook | |
776 | helphook1 |
|
776 | helphook1 | |
777 | helphook2 |
|
777 | helphook2 | |
|
778 | ||||
|
779 | Test keyword search help | |||
|
780 | ||||
|
781 | $ hg help -k clone | |||
|
782 | Topics: | |||
|
783 | ||||
|
784 | config Configuration Files | |||
|
785 | extensions Using Additional Features | |||
|
786 | glossary Glossary | |||
|
787 | phases Working with Phases | |||
|
788 | subrepo Subrepositories | |||
|
789 | urls URL Paths | |||
|
790 | ||||
|
791 | Commands: | |||
|
792 | ||||
|
793 | update update working directory (or switch revisions) | |||
|
794 | paths show aliases for remote repositories | |||
|
795 | clone make a copy of an existing repository | |||
|
796 | ||||
|
797 | Extensions: | |||
|
798 | ||||
|
799 | relink recreates hardlinks between repository clones | |||
|
800 | ||||
|
801 | Extension Commands: | |||
|
802 | ||||
|
803 | qclone clone main and patch repository at same time | |||
|
804 |
General Comments 0
You need to be logged in to leave comments.
Login now