equal
deleted
inserted
replaced
12 from mercurial.util import binary |
12 from mercurial.util import binary |
13 from common import paritygen, staticfile, get_contact, ErrorResponse |
13 from common import paritygen, staticfile, get_contact, ErrorResponse |
14 from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND |
14 from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND |
15 from mercurial import graphmod |
15 from mercurial import graphmod |
16 from mercurial import help as helpmod |
16 from mercurial import help as helpmod |
17 from mercurial import ui |
|
18 from mercurial.i18n import _ |
17 from mercurial.i18n import _ |
19 |
18 |
20 # __all__ is populated with the allowed commands. Be sure to add to it if |
19 # __all__ is populated with the allowed commands. Be sure to add to it if |
21 # you're adding a new command, or the new command won't work. |
20 # you're adding a new command, or the new command won't work. |
22 |
21 |
772 yield {'topic': c, 'summary': doc} |
771 yield {'topic': c, 'summary': doc} |
773 |
772 |
774 return tmpl('helptopics', topics=topics, earlycommands=earlycommands, |
773 return tmpl('helptopics', topics=topics, earlycommands=earlycommands, |
775 othercommands=othercommands, title='Index') |
774 othercommands=othercommands, title='Index') |
776 |
775 |
777 u = ui.ui() |
776 u = web.repo.ui |
778 u.pushbuffer() |
777 u.pushbuffer() |
779 try: |
778 try: |
780 commands.help_(u, topicname) |
779 commands.help_(u, topicname) |
781 except error.UnknownCommand: |
780 except error.UnknownCommand: |
782 raise ErrorResponse(HTTP_NOT_FOUND) |
781 raise ErrorResponse(HTTP_NOT_FOUND) |