##// END OF EJS Templates
tests: bulk changes to avoid "omit superfluous pass" check-code.py error...
FUJIWARA Katsunori -
r41883:9897e95b default
parent child Browse files
Show More
@@ -688,13 +688,11 b' hide outer repo'
688 > @command(b'debugfoobar', [], b'hg debugfoobar')
688 > @command(b'debugfoobar', [], b'hg debugfoobar')
689 > def debugfoobar(ui, repo, *args, **opts):
689 > def debugfoobar(ui, repo, *args, **opts):
690 > "yet another debug command"
690 > "yet another debug command"
691 > pass
692 > @command(b'foo', [], b'hg foo')
691 > @command(b'foo', [], b'hg foo')
693 > def foo(ui, repo, *args, **opts):
692 > def foo(ui, repo, *args, **opts):
694 > """yet another foo command
693 > """yet another foo command
695 > This command has been DEPRECATED since forever.
694 > This command has been DEPRECATED since forever.
696 > """
695 > """
697 > pass
698 > EOF
696 > EOF
699 $ debugpath=`pwd`/debugextension.py
697 $ debugpath=`pwd`/debugextension.py
700 $ echo "debugextension = $debugpath" >> $HGRCPATH
698 $ echo "debugextension = $debugpath" >> $HGRCPATH
@@ -964,7 +962,6 b' Test help topic with same name as extens'
964 > @command(b'multirevs', [], b'ARG', norepo=True)
962 > @command(b'multirevs', [], b'ARG', norepo=True)
965 > def multirevs(ui, repo, arg, *args, **opts):
963 > def multirevs(ui, repo, arg, *args, **opts):
966 > """multirevs command"""
964 > """multirevs command"""
967 > pass
968 > EOF
965 > EOF
969 $ echo "multirevs = multirevs.py" >> $HGRCPATH
966 $ echo "multirevs = multirevs.py" >> $HGRCPATH
970
967
@@ -825,7 +825,6 b' this is a section and erroring out weird'
825 > @command(b'hashelp', [], b'hg hashelp', norepo=True)
825 > @command(b'hashelp', [], b'hg hashelp', norepo=True)
826 > def hashelp(ui, *args, **kwargs):
826 > def hashelp(ui, *args, **kwargs):
827 > """Extension command's help"""
827 > """Extension command's help"""
828 > pass
829 >
828 >
830 > def uisetup(ui):
829 > def uisetup(ui):
831 > ui.setconfig(b'alias', b'shellalias', b'!echo hi', b'helpext')
830 > ui.setconfig(b'alias', b'shellalias', b'!echo hi', b'helpext')
General Comments 0
You need to be logged in to leave comments. Login now