changeset 11996:3195cf01dfb9

revlog.revision(): don't use nullrev as the default value for the cache I is probably a bug if the deltachain computation think there was a cache hit at nullrev. Use None instead, this will never trigger a cache hit.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 20 Aug 2010 00:17:50 +0200
parents ff84cd2bdfaf
children 6d29171255cd
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 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
@@ -1056,7 +1056,7 @@
 
     def revision(self, node):
         """return an uncompressed revision of a given node"""
-        cachedrev = nullrev
+        cachedrev = None
         if node == nullid:
             return ""
         if self._cache: