# HG changeset patch # User Pierre-Yves David # Date 2021-05-03 10:27:09 # Node ID 8b549ea4bebf337a582aed534ea44f34d768abc6 # Parent 21ef5f75edf07aa0c5d6cd4fa7f5dc0d19b268ec revlog: rename `indexdata` to entry_data Same reasoning as the previous changeset, we might not be looking at index data here. Differential Revision: https://phab.mercurial-scm.org/D10602 diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -473,11 +473,11 @@ class revlog(object): else: entry_point = b'%s.i.%s' % (self.radix, self.postfix) - indexdata = b'' + entry_data = b'' self._initempty = True - indexdata = self._get_data(entry_point, mmapindexthreshold) - if len(indexdata) > 0: - header = INDEX_HEADER.unpack(indexdata[:4])[0] + entry_data = self._get_data(entry_point, mmapindexthreshold) + if len(entry_data) > 0: + header = INDEX_HEADER.unpack(entry_data[:4])[0] self._initempty = False else: header = new_header @@ -525,6 +525,7 @@ class revlog(object): msg %= (self._format_version, self.display_id) raise error.RevlogError(msg) + index_data = entry_data self._indexfile = entry_point if self.postfix is None or self.postfix == b'a': @@ -564,7 +565,7 @@ class revlog(object): elif use_rust_index: self._parse_index = parse_index_v1_mixed try: - d = self._parse_index(indexdata, self._inline) + d = self._parse_index(index_data, self._inline) index, _chunkcache = d use_nodemap = ( not self._inline