comparison mercurial/httppeer.py @ 21188:d36440d84328 stable

httppeer: reintroduce _abort that accidentally was removed in 167047ba3cfa Including the missing test coverage that would have caught it.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 23 Apr 2014 23:29:55 +0200
parents f8a0d82b0463
children cde6904f1992
comparison
equal deleted inserted replaced
21187:bcfd44abad93 21188:d36440d84328
235 235
236 def _callcompressable(self, cmd, **args): 236 def _callcompressable(self, cmd, **args):
237 stream = self._callstream(cmd, **args) 237 stream = self._callstream(cmd, **args)
238 return util.chunkbuffer(zgenerator(stream)) 238 return util.chunkbuffer(zgenerator(stream))
239 239
240 def _abort(self, exception):
241 raise exception
242
240 class httpspeer(httppeer): 243 class httpspeer(httppeer):
241 def __init__(self, ui, path): 244 def __init__(self, ui, path):
242 if not url.has_https: 245 if not url.has_https:
243 raise util.Abort(_('Python support for SSL and HTTPS ' 246 raise util.Abort(_('Python support for SSL and HTTPS '
244 'is not installed')) 247 'is not installed'))