Patchwork D608: wireproto: do not abort after successful lookup

login
register
mail settings
Submitter phabricator
Date Sept. 3, 2017, 2:20 p.m.
Message ID <59937410f00f22a40856335804ad9a69@localhost.localdomain>
Download mbox | patch
Permalink /patch/23637/
State Not Applicable
Headers show

Comments

phabricator - Sept. 3, 2017, 2:20 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6c6169f71b8d: wireproto: do not abort after successful lookup (authored by spectral).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D608?vs=1560&id=1588

REVISION DETAIL
  https://phab.mercurial-scm.org/D608

AFFECTED FILES
  mercurial/wireproto.py

CHANGE DETAILS




To: spectral, #hg-reviewers, quark
Cc: quark, mercurial-devel

Patch

diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py
--- a/mercurial/wireproto.py
+++ b/mercurial/wireproto.py
@@ -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):