--- a/mercurial/revlog.py Sat Sep 12 12:47:00 2015 -0700
+++ b/mercurial/revlog.py Sat Sep 12 15:16:47 2015 -0700
@@ -1049,14 +1049,13 @@
node = nodeorrev
rev = None
- _cache = self._cache # grab local copy of cache to avoid thread race
cachedrev = None
if node == nullid:
return ""
- if _cache:
- if _cache[0] == node:
- return _cache[2]
- cachedrev = _cache[1]
+ if self._cache:
+ if self._cache[0] == node:
+ return self._cache[2]
+ cachedrev = self._cache[1]
# look up what we need to read
text = None
@@ -1084,7 +1083,7 @@
if iterrev == cachedrev:
# cache hit
- text = _cache[2]
+ text = self._cache[2]
else:
chain.append(iterrev)
chain.reverse()