# HG changeset patch # User Benoit Boissinot # Date 1282256270 -7200 # Node ID 6d29171255cd810639dabd46c2c4b9c31a5af655 # Parent 3195cf01dfb9f6d8a955db4915a3f1515f61004c revlog.revision(): remove debug code diff -r 3195cf01dfb9 -r 6d29171255cd mercurial/revlog.py --- 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