mercurial/util.py
changeset 25671 d5ac3bebaf2a
parent 25660 328739ea70c3
child 25672 050dc6eabc92
equal deleted inserted replaced
25670:6368c51cfad6 25671:d5ac3bebaf2a
   325         """read data to the buffer"""
   325         """read data to the buffer"""
   326         data = os.read(self._input.fileno(), _chunksize)
   326         data = os.read(self._input.fileno(), _chunksize)
   327         if not data:
   327         if not data:
   328             self._eof = True
   328             self._eof = True
   329         else:
   329         else:
   330             # inefficient add
       
   331             self._buffer.append(data)
   330             self._buffer.append(data)
   332 
   331 
   333 def popen2(cmd, env=None, newlines=False):
   332 def popen2(cmd, env=None, newlines=False):
   334     # Setting bufsize to -1 lets the system decide the buffer size.
   333     # Setting bufsize to -1 lets the system decide the buffer size.
   335     # The default for bufsize is 0, meaning unbuffered. This leads to
   334     # The default for bufsize is 0, meaning unbuffered. This leads to