##// END OF EJS Templates
revlog: rename `versionflags` to header...
marmoute -
r47941:6e0ee181 default
parent child Browse files
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 versionflags = INDEX_HEADER.unpack(indexdata[:4])[0]
488 header = INDEX_HEADER.unpack(indexdata[:4])[0]
489 489 self._initempty = False
490 490 else:
491 versionflags = newversionflags
492
493 flags = self._format_flags = versionflags & ~0xFFFF
494 fmt = self._format_version = versionflags & 0xFFFF
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 = versionflags & FLAG_INLINE_DATA
514 self._generaldelta = versionflags & FLAG_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