Mercurial > hg
comparison tests/test-extension @ 9128:98d90ad54749
commands: hide deprecated commands.
A command is considered deprecated if the word "DEPRECATED" is found
in the doc string. Such commands are hidden from non-verbose help.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Fri, 10 Jul 2009 13:40:25 +0200 |
parents | d2899a856f9f |
children | 1c83938b6a8e |
comparison
equal
deleted
inserted
replaced
9127:35c3f94233a0 | 9128:98d90ad54749 |
---|---|
71 ''' | 71 ''' |
72 def debugfoobar(ui, repo, *args, **opts): | 72 def debugfoobar(ui, repo, *args, **opts): |
73 "yet another debug command" | 73 "yet another debug command" |
74 pass | 74 pass |
75 | 75 |
76 cmdtable = {"debugfoobar": (debugfoobar, (), "hg debugfoobar")} | 76 def foo(ui, repo, *args, **opts): |
77 """yet another foo command | |
78 | |
79 This command has been DEPRECATED since forever. | |
80 """ | |
81 pass | |
82 | |
83 cmdtable = { | |
84 "debugfoobar": (debugfoobar, (), "hg debugfoobar"), | |
85 "foo": (foo, (), "hg foo") | |
86 } | |
77 EOF | 87 EOF |
78 debugpath=`pwd`/debugextension.py | 88 debugpath=`pwd`/debugextension.py |
79 echo "debugextension = $debugpath" >> $HGRCPATH | 89 echo "debugextension = $debugpath" >> $HGRCPATH |
90 echo "% hg help" | |
80 hg help debugextension | 91 hg help debugextension |
92 echo "% hg help --verbose" | |
93 hg --verbose help debugextension | |
94 echo "% hg help --debug" | |
81 hg --debug help debugextension | 95 hg --debug help debugextension |
82 echo 'debugextension = !' >> $HGRCPATH | 96 echo 'debugextension = !' >> $HGRCPATH |
83 | 97 |
84 echo % issue811 | 98 echo % issue811 |
85 debugpath=`pwd`/debugissue811.py | 99 debugpath=`pwd`/debugissue811.py |