Mercurial > public > mercurial-scm > hg-stable
diff mercurial/httprepo.py @ 10544:2e1a9b811d13 stable
httprepo: normalize output from unbundle with ssh
Lines from the remote are prefixed with 'remote: ' and written
locally using ui.status, similar to what sshrepo does.
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Wed, 24 Feb 2010 12:35:26 -0500 |
parents | 72d3a02c62e6 |
children | 9936ed1d04f4 |
line wrap: on
line diff
--- a/mercurial/httprepo.py Wed Feb 24 18:35:05 2010 +0100 +++ b/mercurial/httprepo.py Wed Feb 24 12:35:26 2010 -0500 @@ -239,7 +239,8 @@ except ValueError, err: raise error.ResponseError( _('push failed (unexpected response):'), resp) - self.ui.write(output) + for l in output.splitlines(True): + self.ui.status(_('remote: '), l) return ret except socket.error, err: if err[0] in (errno.ECONNRESET, errno.EPIPE):