Show More
@@ -473,11 +473,11 b' class revlog(object):' | |||
|
473 | 473 | else: |
|
474 | 474 | entry_point = b'%s.i.%s' % (self.radix, self.postfix) |
|
475 | 475 | |
|
476 |
|
|
|
476 | entry_data = b'' | |
|
477 | 477 | self._initempty = True |
|
478 |
|
|
|
479 |
if len( |
|
|
480 |
header = INDEX_HEADER.unpack( |
|
|
478 | entry_data = self._get_data(entry_point, mmapindexthreshold) | |
|
479 | if len(entry_data) > 0: | |
|
480 | header = INDEX_HEADER.unpack(entry_data[:4])[0] | |
|
481 | 481 | self._initempty = False |
|
482 | 482 | else: |
|
483 | 483 | header = new_header |
@@ -525,6 +525,7 b' class revlog(object):' | |||
|
525 | 525 | msg %= (self._format_version, self.display_id) |
|
526 | 526 | raise error.RevlogError(msg) |
|
527 | 527 | |
|
528 | index_data = entry_data | |
|
528 | 529 | self._indexfile = entry_point |
|
529 | 530 | |
|
530 | 531 | if self.postfix is None or self.postfix == b'a': |
@@ -564,7 +565,7 b' class revlog(object):' | |||
|
564 | 565 | elif use_rust_index: |
|
565 | 566 | self._parse_index = parse_index_v1_mixed |
|
566 | 567 | try: |
|
567 | d = self._parse_index(indexdata, self._inline) | |
|
568 | d = self._parse_index(index_data, self._inline) | |
|
568 | 569 | index, _chunkcache = d |
|
569 | 570 | use_nodemap = ( |
|
570 | 571 | not self._inline |
General Comments 0
You need to be logged in to leave comments.
Login now