Mercurial > public > mercurial-scm > hg-stable
diff tests/test-help.t @ 26415:46af0adb5c37
help: hide deprecated filesets, revsets and template items if not verbose
This allows us to hide {branches} template keyword in a better way. Currently
it is achieved by copying keywords table and deleting 'branches' from it.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 26 Sep 2015 12:17:44 +0900 |
parents | c44b507e7c78 |
children | 4b0fc75f9403 |
line wrap: on
line diff
--- a/tests/test-help.t Sat Sep 26 12:11:46 2015 +0900 +++ b/tests/test-help.t Sat Sep 26 12:17:44 2015 +0900 @@ -980,6 +980,12 @@ firstline Any text. Returns the first line of text. nonempty Any text. Returns '(none)' if the string is empty. +Test deprecated items + + $ hg help -v templating | grep currentbookmark + currentbookmark + $ hg help templating | (grep currentbookmark || true) + Test help hooks $ cat > helphook1.py <<EOF