Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 17146:6b40cc67ceb4
hgweb: show help with verbose sections included
This makes sure we see the same help info as with 'hg help <command> --verbose'
on the command line, that is, with verbose sections included.
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Tue, 10 Jul 2012 17:52:43 +0200 |
parents | d490edc71146 |
children | 1ae119269ddc |
comparison
equal
deleted
inserted
replaced
17145:f7152a0d90df | 17146:6b40cc67ceb4 |
---|---|
900 return tmpl('helptopics', topics=topics, earlycommands=earlycommands, | 900 return tmpl('helptopics', topics=topics, earlycommands=earlycommands, |
901 othercommands=othercommands, title='Index') | 901 othercommands=othercommands, title='Index') |
902 | 902 |
903 u = webutil.wsgiui() | 903 u = webutil.wsgiui() |
904 u.pushbuffer() | 904 u.pushbuffer() |
905 u.verbose = True | |
905 try: | 906 try: |
906 commands.help_(u, topicname) | 907 commands.help_(u, topicname) |
907 except error.UnknownCommand: | 908 except error.UnknownCommand: |
908 raise ErrorResponse(HTTP_NOT_FOUND) | 909 raise ErrorResponse(HTTP_NOT_FOUND) |
909 doc = u.popbuffer() | 910 doc = u.popbuffer() |