mercurial/commandserver.py
changeset 44374 f5c006621f07
parent 44368 6392bd7c26a8
parent 44373 98c14f0108b8
child 45057 d6e99a446eea
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: