Show More
@@ -972,7 +972,10 b' class ui(object):' | |||
|
972 | 972 | # disable getpass() only if explicitly specified. it's still valid |
|
973 | 973 | # to interact with tty even if fin is not a tty. |
|
974 | 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 | 979 | else: |
|
977 | 980 | return getpass.getpass('') |
|
978 | 981 | except EOFError: |
@@ -607,6 +607,12 b' changelog and manifest would have invali' | |||
|
607 | 607 | ... runcommand(server, ['debuggetpass', '--config', |
|
608 | 608 | ... 'ui.interactive=True'], |
|
609 | 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 | 616 | ... runcommand(server, ['debugprompt', '--config', |
|
611 | 617 | ... 'ui.interactive=True'], |
|
612 | 618 | ... input=stringio('5678\n')) |
@@ -614,6 +620,11 b' changelog and manifest would have invali' | |||
|
614 | 620 | ... runcommand(server, ['debugwritestdout']) |
|
615 | 621 | *** runcommand debuggetpass --config ui.interactive=True |
|
616 | 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 | 628 | *** runcommand debugprompt --config ui.interactive=True |
|
618 | 629 | prompt: 5678 |
|
619 | 630 | *** runcommand debugreadstdin |
General Comments 0
You need to be logged in to leave comments.
Login now