changeset 11997:6d29171255cd

revlog.revision(): remove debug code
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 20 Aug 2010 00:17:50 +0200
parents 3195cf01dfb9
children e789a811c21d
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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