mercurial/sshrepo.py
changeset 2019 ced2d3620f95
parent 1736 50de0887bbcd
child 2028 1f1fc418a96c
--- a/mercurial/sshrepo.py
+++ b/mercurial/sshrepo.py
@@ -130,4 +130,7 @@ class sshrepository(remoterepository):
 
         self.readerr()
         l = int(self.pipei.readline())
-        return self.pipei.read(l) != ""
+        r = self.pipei.read(l)
+        if not r:
+            return 1
+        return int(r)