Mercurial > hg > mercurial-crew-with-dirclash
changeset 3551:9073d7366776
Use the new UnexpectedOutput exception in httprepo, too.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 27 Oct 2006 18:20:28 +0200 |
parents | eda9e7c9300d |
children | ca24144ed850 |
files | mercurial/httprepo.py |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/httprepo.py +++ b/mercurial/httprepo.py @@ -275,8 +275,7 @@ class httprepository(remoterepository): try: return map(bin, d[:-1].split(" ")) except: - self.ui.warn(_("unexpected response:\n") + d[:400] + "\n...\n") - raise + raise util.UnexpectedOutput(_("unexpected response:"), d) def branches(self, nodes): n = " ".join(map(hex, nodes)) @@ -285,8 +284,7 @@ class httprepository(remoterepository): br = [ tuple(map(bin, b.split(" "))) for b in d.splitlines() ] return br except: - self.ui.warn(_("unexpected response:\n") + d[:400] + "\n...\n") - raise + raise util.UnexpectedOutput(_("unexpected response:"), d) def between(self, pairs): n = "\n".join(["-".join(map(hex, p)) for p in pairs]) @@ -295,8 +293,7 @@ class httprepository(remoterepository): p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ] return p except: - self.ui.warn(_("unexpected response:\n") + d[:400] + "\n...\n") - raise + raise util.UnexpectedOutput(_("unexpected response:"), d) def changegroup(self, nodes, kind): n = " ".join(map(hex, nodes))