Mercurial > public > mercurial-scm > hg
diff mercurial/httprepo.py @ 7641:d2f753830f80
error: move UnexpectedOutput (now ResponseError)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 Jan 2009 11:28:28 -0600 |
parents | 1d54e2f6c0b7 |
children | 998fc8f62539 |
line wrap: on
line diff
--- a/mercurial/httprepo.py Mon Jan 12 11:09:14 2009 -0600 +++ b/mercurial/httprepo.py Mon Jan 12 11:28:28 2009 -0600 @@ -135,7 +135,7 @@ try: return map(bin, d[:-1].split(" ")) except: - raise util.UnexpectedOutput(_("unexpected response:"), d) + raise error.ResponseError(_("unexpected response:"), d) def branches(self, nodes): n = " ".join(map(hex, nodes)) @@ -144,7 +144,7 @@ br = [ tuple(map(bin, b.split(" "))) for b in d.splitlines() ] return br except: - raise util.UnexpectedOutput(_("unexpected response:"), d) + raise error.ResponseError(_("unexpected response:"), d) def between(self, pairs): batch = 8 # avoid giant requests @@ -155,7 +155,7 @@ try: r += [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ] except: - raise util.UnexpectedOutput(_("unexpected response:"), d) + raise error.ResponseError(_("unexpected response:"), d) return r def changegroup(self, nodes, kind): @@ -200,7 +200,7 @@ try: ret = int(resp_code) except ValueError, err: - raise util.UnexpectedOutput( + raise error.ResponseError( _('push failed (unexpected response):'), resp) self.ui.write(output) return ret