comparison mercurial/commandserver.py @ 44374:f5c006621f07

merge with stable
author Augie Fackler <augie@google.com>
date Mon, 24 Feb 2020 13:50:55 -0500
parents 6392bd7c26a8 98c14f0108b8
children d6e99a446eea
comparison
equal deleted inserted replaced
44372:8407031f195f 44374:f5c006621f07
158 size = self.maxchunksize 158 size = self.maxchunksize
159 s = self._read(size, b'L') 159 s = self._read(size, b'L')
160 buf = s 160 buf = s
161 # keep asking for more until there's either no more or 161 # keep asking for more until there's either no more or
162 # we got a full line 162 # we got a full line
163 while s and s[-1] != b'\n': 163 while s and not s.endswith(b'\n'):
164 s = self._read(size, b'L') 164 s = self._read(size, b'L')
165 buf += s 165 buf += s
166 166
167 return buf 167 return buf
168 else: 168 else: