Show More
@@ -972,7 +972,10 b' class ui(object):' | |||||
972 | # disable getpass() only if explicitly specified. it's still valid |
|
972 | # disable getpass() only if explicitly specified. it's still valid | |
973 | # to interact with tty even if fin is not a tty. |
|
973 | # to interact with tty even if fin is not a tty. | |
974 | if self.configbool('ui', 'nontty'): |
|
974 | if self.configbool('ui', 'nontty'): | |
975 |
|
|
975 | l = self.fin.readline() | |
|
976 | if not l: | |||
|
977 | raise EOFError | |||
|
978 | return l.rstrip('\n') | |||
976 | else: |
|
979 | else: | |
977 | return getpass.getpass('') |
|
980 | return getpass.getpass('') | |
978 | except EOFError: |
|
981 | except EOFError: |
@@ -607,6 +607,12 b' changelog and manifest would have invali' | |||||
607 | ... runcommand(server, ['debuggetpass', '--config', |
|
607 | ... runcommand(server, ['debuggetpass', '--config', | |
608 | ... 'ui.interactive=True'], |
|
608 | ... 'ui.interactive=True'], | |
609 | ... input=stringio('1234\n')) |
|
609 | ... input=stringio('1234\n')) | |
|
610 | ... runcommand(server, ['debuggetpass', '--config', | |||
|
611 | ... 'ui.interactive=True'], | |||
|
612 | ... input=stringio('\n')) | |||
|
613 | ... runcommand(server, ['debuggetpass', '--config', | |||
|
614 | ... 'ui.interactive=True'], | |||
|
615 | ... input=stringio('')) | |||
610 | ... runcommand(server, ['debugprompt', '--config', |
|
616 | ... runcommand(server, ['debugprompt', '--config', | |
611 | ... 'ui.interactive=True'], |
|
617 | ... 'ui.interactive=True'], | |
612 | ... input=stringio('5678\n')) |
|
618 | ... input=stringio('5678\n')) | |
@@ -614,6 +620,11 b' changelog and manifest would have invali' | |||||
614 | ... runcommand(server, ['debugwritestdout']) |
|
620 | ... runcommand(server, ['debugwritestdout']) | |
615 | *** runcommand debuggetpass --config ui.interactive=True |
|
621 | *** runcommand debuggetpass --config ui.interactive=True | |
616 | password: 1234 |
|
622 | password: 1234 | |
|
623 | *** runcommand debuggetpass --config ui.interactive=True | |||
|
624 | password: | |||
|
625 | *** runcommand debuggetpass --config ui.interactive=True | |||
|
626 | password: abort: response expected | |||
|
627 | [255] | |||
617 | *** runcommand debugprompt --config ui.interactive=True |
|
628 | *** runcommand debugprompt --config ui.interactive=True | |
618 | prompt: 5678 |
|
629 | prompt: 5678 | |
619 | *** runcommand debugreadstdin |
|
630 | *** runcommand debugreadstdin |
General Comments 0
You need to be logged in to leave comments.
Login now