##// END OF EJS Templates
sshpeer: don't fail forwarding output from closed connections...
Valentin Gatien-Baron -
r47429:fa30292b default
parent child Browse files
Show More
@@ -40,7 +40,7 b' def _forwardoutput(ui, pipe, warn=False)'
40 """display all data currently available on pipe as remote output.
40 """display all data currently available on pipe as remote output.
41
41
42 This is non blocking."""
42 This is non blocking."""
43 if pipe:
43 if pipe and not pipe.closed:
44 s = procutil.readpipe(pipe)
44 s = procutil.readpipe(pipe)
45 if s:
45 if s:
46 display = ui.warn if warn else ui.status
46 display = ui.warn if warn else ui.status
@@ -10,4 +10,4 b' fails (thus causing the sshpeer to be st'
10 further lookups don't result in tracebacks.
10 further lookups don't result in tracebacks.
11
11
12 $ hg pull -r b0 -r nosuchbookmark $(for i in $($TESTDIR/seq.py 1 20); do echo -r b$i; done) -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/$(pwd)/../a |& tail -n 1
12 $ hg pull -r b0 -r nosuchbookmark $(for i in $($TESTDIR/seq.py 1 20); do echo -r b$i; done) -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/$(pwd)/../a |& tail -n 1
13 ValueError: I/O operation on closed file
13 StopIteration
General Comments 0
You need to be logged in to leave comments. Login now