Show More
@@ -384,8 +384,11 b' class revlog(object):' | |||
|
384 | 384 | # 2-tuple of file handles being used for active writing. |
|
385 | 385 | self._writinghandles = None |
|
386 | 386 | |
|
387 | self._loadindex() | |
|
388 | ||
|
389 | def _loadindex(self): | |
|
387 | 390 | mmapindexthreshold = None |
|
388 | opts = getattr(opener, 'options', {}) or {} | |
|
391 | opts = getattr(self.opener, 'options', {}) or {} | |
|
389 | 392 | |
|
390 | 393 | if 'revlogv2' in opts: |
|
391 | 394 | versionflags = REVLOGV2 | FLAG_INLINE_DATA |
@@ -431,9 +434,6 b' class revlog(object):' | |||
|
431 | 434 | raise error.RevlogError(_('revlog chunk cache size %r is not a ' |
|
432 | 435 | 'power of 2') % self._chunkcachesize) |
|
433 | 436 | |
|
434 | self._loadindex(versionflags, mmapindexthreshold) | |
|
435 | ||
|
436 | def _loadindex(self, versionflags, mmapindexthreshold): | |
|
437 | 437 | indexdata = '' |
|
438 | 438 | self._initempty = True |
|
439 | 439 | try: |
@@ -2499,7 +2499,7 b' class revlog(object):' | |||
|
2499 | 2499 | self.opener.rename(newrl.datafile, self.datafile) |
|
2500 | 2500 | |
|
2501 | 2501 | self.clearcaches() |
|
2502 |
self._loadindex( |
|
|
2502 | self._loadindex() | |
|
2503 | 2503 | |
|
2504 | 2504 | def verifyintegrity(self, state): |
|
2505 | 2505 | """Verifies the integrity of the revlog. |
General Comments 0
You need to be logged in to leave comments.
Login now