Mercurial > hg
diff mercurial/bundlerepo.py @ 40052:55db747a21ad
revlog: rename _cache to _revisioncache
"cache" is generic and revlog instances have multiple caches. Let's
be descriptive about what this is a cache for.
Differential Revision: https://phab.mercurial-scm.org/D4866
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 03 Oct 2018 10:32:21 -0700 |
parents | 75b53b809e87 |
children | 3913223417ea |
line wrap: on
line diff
--- a/mercurial/bundlerepo.py Wed Oct 03 10:56:48 2018 -0700 +++ b/mercurial/bundlerepo.py Wed Oct 03 10:32:21 2018 -0700 @@ -127,8 +127,8 @@ iterrev = rev # reconstruct the revision if it is from a changegroup while iterrev > self.repotiprev: - if self._cache and self._cache[1] == iterrev: - rawtext = self._cache[2] + if self._revisioncache and self._revisioncache[1] == iterrev: + rawtext = self._revisioncache[2] break chain.append(iterrev) iterrev = self.index[iterrev][3] @@ -143,7 +143,7 @@ 'read', raw=raw) if validatehash: self.checkhash(text, node, rev=rev) - self._cache = (node, rev, rawtext) + self._revisioncache = (node, rev, rawtext) return text def baserevision(self, nodeorrev):