Show More
@@ -440,6 +440,8 b' class revlog(object):' | |||||
440 | with self._indexfp() as f: |
|
440 | with self._indexfp() as f: | |
441 | if (mmapindexthreshold is not None and |
|
441 | if (mmapindexthreshold is not None and | |
442 | self.opener.fstat(f).st_size >= mmapindexthreshold): |
|
442 | self.opener.fstat(f).st_size >= mmapindexthreshold): | |
|
443 | # TODO: should .close() to release resources without | |||
|
444 | # relying on Python GC | |||
443 | indexdata = util.buffer(util.mmapread(f)) |
|
445 | indexdata = util.buffer(util.mmapread(f)) | |
444 | else: |
|
446 | else: | |
445 | indexdata = f.read() |
|
447 | indexdata = f.read() |
General Comments 0
You need to be logged in to leave comments.
Login now