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