Mercurial > hg
comparison mercurial/unionrepo.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 | 39f51064e9f5 |
children | 3913223417ea |
comparison
equal
deleted
inserted
replaced
40051:cdf61ab1f54c | 40052:55db747a21ad |
---|---|
108 if node == nullid: | 108 if node == nullid: |
109 return "" | 109 return "" |
110 | 110 |
111 if rev > self.repotiprev: | 111 if rev > self.repotiprev: |
112 text = self.revlog2.revision(node) | 112 text = self.revlog2.revision(node) |
113 self._cache = (node, rev, text) | 113 self._revisioncache = (node, rev, text) |
114 else: | 114 else: |
115 text = self.baserevision(rev) | 115 text = self.baserevision(rev) |
116 # already cached | 116 # already cached |
117 return text | 117 return text |
118 | 118 |