Mercurial > public > mercurial-scm > hg
comparison mercurial/sshpeer.py @ 26587:56b2bcea2529
error: get Abort from 'error' instead of 'util'
The home of 'Abort' is 'error' not 'util' however, a lot of code seems to be
confused about that and gives all the credit to 'util' instead of the
hardworking 'error'. In a spirit of equity, we break the cycle of injustice and
give back to 'error' the respect it deserves. And screw that 'util' poser.
For great justice.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 08 Oct 2015 12:55:45 -0700 |
parents | de7a3893ee65 |
children | 1aee2ab0f902 |
comparison
equal
deleted
inserted
replaced
26586:d51c658d3f04 | 26587:56b2bcea2529 |
---|---|
275 | 275 |
276 def _calltwowaystream(self, cmd, fp, **args): | 276 def _calltwowaystream(self, cmd, fp, **args): |
277 r = self._call(cmd, **args) | 277 r = self._call(cmd, **args) |
278 if r: | 278 if r: |
279 # XXX needs to be made better | 279 # XXX needs to be made better |
280 raise util.Abort('unexpected remote reply: %s' % r) | 280 raise error.Abort('unexpected remote reply: %s' % r) |
281 while True: | 281 while True: |
282 d = fp.read(4096) | 282 d = fp.read(4096) |
283 if not d: | 283 if not d: |
284 break | 284 break |
285 self._send(d) | 285 self._send(d) |