Mercurial > hg
changeset 36249:c792f7c64f0c
help: list deprecated and experimental extensions if --verbose
This is common in the other help topics.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 27 Dec 2015 14:13:27 +0900 |
parents | 0ef50a5e3ae1 |
children | 4174970c9147 |
files | mercurial/help.py tests/test-help.t |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/help.py Sun Dec 27 13:08:51 2015 +0900 +++ b/mercurial/help.py Sun Dec 27 14:13:27 2015 +0900 @@ -62,7 +62,8 @@ rst = loaddoc('extensions')(ui).splitlines(True) rst.extend(listexts( _('enabled extensions:'), extensions.enabled(), showdeprecated=True)) - rst.extend(listexts(_('disabled extensions:'), extensions.disabled())) + rst.extend(listexts(_('disabled extensions:'), extensions.disabled(), + showdeprecated=ui.verbose)) doc = ''.join(rst) return doc
--- a/tests/test-help.t Sun Dec 27 13:08:51 2015 +0900 +++ b/tests/test-help.t Sun Dec 27 14:13:27 2015 +0900 @@ -283,6 +283,11 @@ win32mbcs allow the use of MBCS paths with problematic encodings zeroconf discover and advertise repositories on the local network +Verify that deprecated extensions are included if --verbose: + + $ hg -v help extensions | grep children + children command to display child changesets (DEPRECATED) + Verify that extension keywords appear in help templates $ hg help --config extensions.transplant= templating|grep transplant > /dev/null