Submitter | Matt Harbison |
---|---|
Date | March 10, 2018, 6:05 p.m. |
Message ID | <0e076d66888bff8e3eac.1520705127@Envy> |
Download | mbox | patch |
Permalink | /patch/29253/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/sshpeer.py b/mercurial/sshpeer.py --- a/mercurial/sshpeer.py +++ b/mercurial/sshpeer.py @@ -32,10 +32,11 @@ def _forwardoutput(ui, pipe): """display all data currently available on pipe as remote output. This is non blocking.""" - s = util.readpipe(pipe) - if s: - for l in s.splitlines(): - ui.status(_("remote: "), l, '\n') + if pipe: + s = util.readpipe(pipe) + if s: + for l in s.splitlines(): + ui.status(_("remote: "), l, '\n') class doublepipe(object): """Operate a side-channel pipe in addition of a main one