mercurial/util.py
changeset 51679 5f37c36f36b9
parent 51677 522b4d729e89
child 51685 39e2b2d062c1
equal deleted inserted replaced
51678:c10fa6388dbf 51679:5f37c36f36b9
   436         else:
   436         else:
   437             self._lenbuf += len(data)
   437             self._lenbuf += len(data)
   438             self._buffer.append(data)
   438             self._buffer.append(data)
   439 
   439 
   440         return data
   440         return data
       
   441 
       
   442 
       
   443 def has_mmap_populate():
       
   444     return hasattr(mmap, 'MAP_POPULATE')
   441 
   445 
   442 
   446 
   443 def mmapread(fp, size=None, pre_populate=True):
   447 def mmapread(fp, size=None, pre_populate=True):
   444     """Read a file content using mmap
   448     """Read a file content using mmap
   445 
   449