Show More
@@ -1464,7 +1464,7 b' class ui(object):' | |||
|
1464 | 1464 | return default |
|
1465 | 1465 | try: |
|
1466 | 1466 | self._writemsg(self._fmsgerr, prompt or _('password: '), |
|
1467 | type='prompt') | |
|
1467 | type='prompt', password=True) | |
|
1468 | 1468 | # disable getpass() only if explicitly specified. it's still valid |
|
1469 | 1469 | # to interact with tty even if fin is not a tty. |
|
1470 | 1470 | with self.timeblockedsection('stdio'): |
@@ -762,10 +762,15 b' structured message channel:' | |||
|
762 | 762 | ... def prompt(server): |
|
763 | 763 | ... readchannel(server) |
|
764 | 764 | ... interactive = [b'--config', b'ui.interactive=True'] |
|
765 | ... runcommand(server, [b'debuggetpass'] + interactive, | |
|
766 | ... input=stringio(b'1234\n')) | |
|
765 | 767 | ... runcommand(server, [b'debugprompt'] + interactive, |
|
766 | 768 | ... input=stringio(b'5678\n')) |
|
767 | 769 | ... runcommand(server, [b'debugpromptchoice'] + interactive, |
|
768 | 770 | ... input=stringio(b'n\n')) |
|
771 | *** runcommand debuggetpass --config ui.interactive=True | |
|
772 | message: '\xa3DdataJpassword: Hpassword\xf5DtypeFprompt' | |
|
773 | 1234 | |
|
769 | 774 | *** runcommand debugprompt --config ui.interactive=True |
|
770 | 775 | message: '\xa3DdataGprompt:GdefaultAyDtypeFprompt' |
|
771 | 776 | 5678 |
General Comments 0
You need to be logged in to leave comments.
Login now