comparison 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
comparison
equal deleted inserted replaced
10543:dd3526162436 10544:2e1a9b811d13
237 try: 237 try:
238 ret = int(resp_code) 238 ret = int(resp_code)
239 except ValueError, err: 239 except ValueError, err:
240 raise error.ResponseError( 240 raise error.ResponseError(
241 _('push failed (unexpected response):'), resp) 241 _('push failed (unexpected response):'), resp)
242 self.ui.write(output) 242 for l in output.splitlines(True):
243 self.ui.status(_('remote: '), l)
243 return ret 244 return ret
244 except socket.error, err: 245 except socket.error, err:
245 if err[0] in (errno.ECONNRESET, errno.EPIPE): 246 if err[0] in (errno.ECONNRESET, errno.EPIPE):
246 raise util.Abort(_('push failed: %s') % err[1]) 247 raise util.Abort(_('push failed: %s') % err[1])
247 raise util.Abort(err[1]) 248 raise util.Abort(err[1])