##// END OF EJS Templates
Use the new UnexpectedOutput exception in httprepo, too.
Thomas Arendsen Hein -
r3565:9073d736 default
parent child Browse files
Show More
@@ -275,8 +275,7 b' class httprepository(remoterepository):'
275 try:
275 try:
276 return map(bin, d[:-1].split(" "))
276 return map(bin, d[:-1].split(" "))
277 except:
277 except:
278 self.ui.warn(_("unexpected response:\n") + d[:400] + "\n...\n")
278 raise util.UnexpectedOutput(_("unexpected response:"), d)
279 raise
280
279
281 def branches(self, nodes):
280 def branches(self, nodes):
282 n = " ".join(map(hex, nodes))
281 n = " ".join(map(hex, nodes))
@@ -285,8 +284,7 b' class httprepository(remoterepository):'
285 br = [ tuple(map(bin, b.split(" "))) for b in d.splitlines() ]
284 br = [ tuple(map(bin, b.split(" "))) for b in d.splitlines() ]
286 return br
285 return br
287 except:
286 except:
288 self.ui.warn(_("unexpected response:\n") + d[:400] + "\n...\n")
287 raise util.UnexpectedOutput(_("unexpected response:"), d)
289 raise
290
288
291 def between(self, pairs):
289 def between(self, pairs):
292 n = "\n".join(["-".join(map(hex, p)) for p in pairs])
290 n = "\n".join(["-".join(map(hex, p)) for p in pairs])
@@ -295,8 +293,7 b' class httprepository(remoterepository):'
295 p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ]
293 p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ]
296 return p
294 return p
297 except:
295 except:
298 self.ui.warn(_("unexpected response:\n") + d[:400] + "\n...\n")
296 raise util.UnexpectedOutput(_("unexpected response:"), d)
299 raise
300
297
301 def changegroup(self, nodes, kind):
298 def changegroup(self, nodes, kind):
302 n = " ".join(map(hex, nodes))
299 n = " ".join(map(hex, nodes))
General Comments 0
You need to be logged in to leave comments. Login now