Mercurial > public > mercurial-scm > hg
comparison mercurial/dispatch.py @ 27325:eadbbd14bdc1
help: fix help -c/help -e/help -k
Before, hg help -c was the same as hg help, now it only shows commands.
Before, hg help -e was the same as hg help, now it only shows extensions.
Before, hg help -k crashed, now it shows all topics.
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 09 Dec 2015 05:56:54 +0000 |
parents | 77850d2a161c |
children | 1c1216182dc1 |
comparison
equal
deleted
inserted
replaced
27324:5456374561a7 | 27325:eadbbd14bdc1 |
---|---|
852 ui_.setconfig('web', 'cacerts', '!', '--insecure') | 852 ui_.setconfig('web', 'cacerts', '!', '--insecure') |
853 | 853 |
854 if options['version']: | 854 if options['version']: |
855 return commands.version_(ui) | 855 return commands.version_(ui) |
856 if options['help']: | 856 if options['help']: |
857 return commands.help_(ui, cmd, command=True) | 857 return commands.help_(ui, cmd, command=cmd is not None) |
858 elif not cmd: | 858 elif not cmd: |
859 return commands.help_(ui, 'shortlist') | 859 return commands.help_(ui, 'shortlist') |
860 | 860 |
861 repo = None | 861 repo = None |
862 cmdpats = args[:] | 862 cmdpats = args[:] |