D608: wireproto: do not abort after successful lookup

spectral (Kyle Lippincott) phabricator at mercurial-scm.org
Sun Sep 3 10:20:31 EDT 2017


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

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):



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


More information about the Mercurial-devel mailing list