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): |