mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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:
parent
841f801067
commit
4b8002ed12
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user