--- a/mercurial/revlog.py Fri Aug 20 00:17:50 2010 +0200
+++ b/mercurial/revlog.py Fri Aug 20 00:17:50 2010 +0200
@@ -23,8 +23,6 @@
_decompress = zlib.decompress
_sha = util.sha1
-_cached, _uncached = 0, 0
-
# revlog header flags
REVLOGV0 = 0
REVLOGNG = 1
@@ -1079,14 +1077,8 @@
cachehit, base, chain = self.deltachain(rev, cachedrev)
# do we have useful data cached?
- if cachehit and self._cache:
- global _cached
- _cached += 1
+ if cachehit:
text = self._cache[2]
- else:
- global _uncached
- _uncached += 1
-
# drop cache to save memory
self._cache = None