Mercurial > hg
changeset 43581:f5991fd7cca7
revlog: remove the, now unused, `revlog._nodepos` attribute
Spotted by Yuya Nishihara.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 10 Nov 2019 18:15:54 +0100 |
parents | 9e1932eb41f9 |
children | ae5e39512ca0 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 0 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Sun Nov 10 18:12:50 2019 +0100 +++ b/mercurial/revlog.py Sun Nov 10 18:15:54 2019 +0100 @@ -421,7 +421,6 @@ # Mapping of partial identifiers to full nodes. self._pcache = {} # Mapping of revision integer to full node. - self._nodepos = None self._compengine = b'zlib' self._compengineopts = {} self._maxdeltachainspan = -1 @@ -2223,11 +2222,6 @@ ) self.index.append(e) - # Reset the pure node cache start lookup offset to account for new - # revision. - if self._nodepos is not None: - self._nodepos = curr - entry = self._io.packentry(e, self.node, self.version, curr) self._writeentry( transaction, ifh, dfh, entry, deltainfo.data, link, offset @@ -2462,7 +2456,6 @@ self._chunkclear() del self.index[rev:-1] - self._nodepos = None def checksize(self): """Check size of index and data files