Show More
@@ -485,13 +485,13 b' class revlog(object):' | |||
|
485 | 485 | self._initempty = True |
|
486 | 486 | indexdata = self._get_data(self._indexfile, mmapindexthreshold) |
|
487 | 487 | if len(indexdata) > 0: |
|
488 |
|
|
|
488 | header = INDEX_HEADER.unpack(indexdata[:4])[0] | |
|
489 | 489 | self._initempty = False |
|
490 | 490 | else: |
|
491 |
|
|
|
492 | ||
|
493 |
flags = self._format_flags = |
|
|
494 |
fmt = self._format_version = |
|
|
491 | header = newversionflags | |
|
492 | ||
|
493 | flags = self._format_flags = header & ~0xFFFF | |
|
494 | fmt = self._format_version = header & 0xFFFF | |
|
495 | 495 | |
|
496 | 496 | if fmt == REVLOGV0: |
|
497 | 497 | if flags: |
@@ -510,8 +510,8 b' class revlog(object):' | |||
|
510 | 510 | % (flags >> 16, fmt, self.display_id) |
|
511 | 511 | ) |
|
512 | 512 | |
|
513 |
self._inline = |
|
|
514 |
self._generaldelta = |
|
|
513 | self._inline = header & FLAG_INLINE_DATA | |
|
514 | self._generaldelta = header & FLAG_GENERALDELTA | |
|
515 | 515 | |
|
516 | 516 | elif fmt == REVLOGV2: |
|
517 | 517 | if flags & ~REVLOGV2_FLAGS: |
General Comments 0
You need to be logged in to leave comments.
Login now