Skip to content
Snippets Groups Projects
Commit c49283e7 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

test-commandserver: clean up quoting and location of dbgui extension

This helps embedding '$' in the script.
parent 83dd8c63
No related branches found
No related tags found
No related merge requests found
......@@ -607,7 +607,7 @@
*** runcommand qqueue --active
foo
$ cat <<EOF > dbgui.py
$ cat <<'EOF' > ../dbgui.py
> import os
> import sys
> from mercurial import commands, registrar
......@@ -615,6 +615,6 @@
> command = registrar.command(cmdtable)
> @command(b"debuggetpass", norepo=True)
> def debuggetpass(ui):
> ui.write(b"%s\\n" % ui.getpass())
> ui.write(b"%s\n" % ui.getpass())
> @command(b"debugprompt", norepo=True)
> def debugprompt(ui):
......@@ -619,6 +619,6 @@
> @command(b"debugprompt", norepo=True)
> def debugprompt(ui):
> ui.write(b"%s\\n" % ui.prompt(b"prompt:"))
> ui.write(b"%s\n" % ui.prompt(b"prompt:"))
> @command(b"debugreadstdin", norepo=True)
> def debugreadstdin(ui):
> ui.write(b"read: %r\n" % sys.stdin.read(1))
......@@ -630,7 +630,7 @@
> EOF
$ cat <<EOF >> .hg/hgrc
> [extensions]
> dbgui = dbgui.py
> dbgui = ../dbgui.py
> EOF
>>> from hgclient import check, readchannel, runcommand, stringio
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment