revlog.revision(): don't use nullrev as the default value for the cache
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 20 Aug 2010 00:17:50 +0200
changeset 11996 3195cf01dfb9
parent 11995 ff84cd2bdfaf
child 11997 6d29171255cd
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.
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
@@ -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: