##// END OF EJS Templates
py3: fix EOL detection in commandserver.channeledinput...
Yuya Nishihara -
r44857:98c14f01 stable
parent child Browse files
Show More
@@ -160,7 +160,7 b' class channeledinput(object):'
160 160 buf = s
161 161 # keep asking for more until there's either no more or
162 162 # we got a full line
163 while s and s[-1] != b'\n':
163 while s and not s.endswith(b'\n'):
164 164 s = self._read(size, b'L')
165 165 buf += s
166 166
@@ -654,6 +654,9 b' changelog and manifest would have invali'
654 654 ... runcommand(server, [b'debugprompt', b'--config',
655 655 ... b'ui.interactive=True'],
656 656 ... input=stringio(b'5678\n'))
657 ... runcommand(server, [b'debugprompt', b'--config',
658 ... b'ui.interactive=True'],
659 ... input=stringio(b'\nremainder\nshould\nnot\nbe\nread\n'))
657 660 ... runcommand(server, [b'debugreadstdin'])
658 661 ... runcommand(server, [b'debugwritestdout'])
659 662 *** runcommand debuggetpass --config ui.interactive=True
@@ -665,6 +668,8 b' changelog and manifest would have invali'
665 668 [255]
666 669 *** runcommand debugprompt --config ui.interactive=True
667 670 prompt: 5678
671 *** runcommand debugprompt --config ui.interactive=True
672 prompt: y
668 673 *** runcommand debugreadstdin
669 674 read: ''
670 675 *** runcommand debugwritestdout
General Comments 0
You need to be logged in to leave comments. Login now