sapling/eden/scm/tests/test-extension-inline.t
Mark Thomas a25521a48b tests: remove uses of $PYTHON -c
Reviewed By: quark-zju, ikostia

Differential Revision: D23151936

fbshipit-source-id: f5dc1bf1e2007fe82c8ea67fa94c7b5aa3fd9a0c
2020-08-19 00:32:19 -07:00

16 lines
490 B
Perl

#chg-compatible
$ cat >> foo.py << EOF
> from edenscm.mercurial import registrar
> cmdtable = {}
> command = registrar.command(cmdtable)
> @command('foo', [], norepo=True)
> def foo(ui):
> ui.write('This is the foo command\n')
> EOF
$ setconfig "extensions.foo=python-base64:`hg debugsh -c 'import base64; ui.writebytes(base64.b64encode(open(\"foo.py\", \"rb\").read()).decode("utf-8").replace(\"\\n\",\"\").encode("utf-8"))'`"
$ hg foo
This is the foo command