diff -r 11499bad0359 -r 6c6169f71b8d mercurial/wireproto.py --- a/mercurial/wireproto.py Fri Sep 01 16:44:30 2017 -0700 +++ b/mercurial/wireproto.py Fri Sep 01 14:00:13 2017 -0700 @@ -235,7 +235,8 @@ success, data = d[:-1].split(" ", 1) if int(success): yield bin(data) - self._abort(error.RepoError(data)) + else: + self._abort(error.RepoError(data)) @batchable def heads(self):