Show More
@@ -607,7 +607,7 b' changelog and manifest would have invali' | |||||
607 | *** runcommand qqueue --active |
|
607 | *** runcommand qqueue --active | |
608 | foo |
|
608 | foo | |
609 |
|
609 | |||
610 | $ cat <<EOF > dbgui.py |
|
610 | $ cat <<'EOF' > ../dbgui.py | |
611 | > import os |
|
611 | > import os | |
612 | > import sys |
|
612 | > import sys | |
613 | > from mercurial import commands, registrar |
|
613 | > from mercurial import commands, registrar | |
@@ -615,10 +615,10 b' changelog and manifest would have invali' | |||||
615 | > command = registrar.command(cmdtable) |
|
615 | > command = registrar.command(cmdtable) | |
616 | > @command(b"debuggetpass", norepo=True) |
|
616 | > @command(b"debuggetpass", norepo=True) | |
617 | > def debuggetpass(ui): |
|
617 | > def debuggetpass(ui): | |
618 |
> ui.write(b"%s |
|
618 | > ui.write(b"%s\n" % ui.getpass()) | |
619 | > @command(b"debugprompt", norepo=True) |
|
619 | > @command(b"debugprompt", norepo=True) | |
620 | > def debugprompt(ui): |
|
620 | > def debugprompt(ui): | |
621 |
> ui.write(b"%s |
|
621 | > ui.write(b"%s\n" % ui.prompt(b"prompt:")) | |
622 | > @command(b"debugreadstdin", norepo=True) |
|
622 | > @command(b"debugreadstdin", norepo=True) | |
623 | > def debugreadstdin(ui): |
|
623 | > def debugreadstdin(ui): | |
624 | > ui.write(b"read: %r\n" % sys.stdin.read(1)) |
|
624 | > ui.write(b"read: %r\n" % sys.stdin.read(1)) | |
@@ -630,7 +630,7 b' changelog and manifest would have invali' | |||||
630 | > EOF |
|
630 | > EOF | |
631 | $ cat <<EOF >> .hg/hgrc |
|
631 | $ cat <<EOF >> .hg/hgrc | |
632 | > [extensions] |
|
632 | > [extensions] | |
633 | > dbgui = dbgui.py |
|
633 | > dbgui = ../dbgui.py | |
634 | > EOF |
|
634 | > EOF | |
635 |
|
635 | |||
636 | >>> from hgclient import check, readchannel, runcommand, stringio |
|
636 | >>> from hgclient import check, readchannel, runcommand, stringio |
General Comments 0
You need to be logged in to leave comments.
Login now