Show More
@@ -1213,11 +1213,12 b' class revbranchcache:' | |||
|
1213 | 1213 | |
|
1214 | 1214 | if self._names: |
|
1215 | 1215 | try: |
|
1216 |
|
|
|
1217 |
|
|
|
1216 | usemmap = repo.ui.configbool(b'storage', b'revbranchcache.mmap') | |
|
1217 | with repo.cachevfs(_rbcrevs) as fp: | |
|
1218 | if usemmap and repo.cachevfs.is_mmap_safe(_rbcrevs): | |
|
1218 | 1219 | data = util.buffer(util.mmapread(fp)) |
|
1219 | else: | |
|
1220 |
data = |
|
|
1220 | else: | |
|
1221 | data = fp.read() | |
|
1221 | 1222 | self._rbcrevs = rbcrevs(data) |
|
1222 | 1223 | except (IOError, OSError) as inst: |
|
1223 | 1224 | repo.ui.debug( |
General Comments 0
You need to be logged in to leave comments.
Login now