comparison tests/test-extension.t @ 41736:9897e95b0b4a

tests: bulk changes to avoid "omit superfluous pass" check-code.py error This is a part of preparation to apply checking with check-code.py on code fragments embedded in *.t test scripts.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Mon, 18 Feb 2019 00:27:25 +0900
parents a4cd77a425a3
children c70bdd222dcd
comparison
equal deleted inserted replaced
41735:67333663d49e 41736:9897e95b0b4a
686 > cmdtable = {} 686 > cmdtable = {}
687 > command = registrar.command(cmdtable) 687 > command = registrar.command(cmdtable)
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
701 699
702 $ hg help debugextension 700 $ hg help debugextension
962 > """multirevs extension 960 > """multirevs extension
963 > Big multi-line module docstring.""" 961 > Big multi-line module docstring."""
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
971 $ hg help multirevs | tail 968 $ hg help multirevs | tail
972 used): 969 used):