revlog.revision(): remove debug code
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 20 Aug 2010 00:17:50 +0200
changeset 11997 6d29171255cd
parent 11996 3195cf01dfb9
child 11998 e789a811c21d
revlog.revision(): remove debug code
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