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