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.
This commit is contained in:
Benoit Boissinot 2010-08-20 00:17:50 +02:00
parent 841f801067
commit 4b8002ed12

View File

@ -1056,7 +1056,7 @@ class revlog(object):
def revision(self, node):
"""return an uncompressed revision of a given node"""
cachedrev = nullrev
cachedrev = None
if node == nullid:
return ""
if self._cache: