# HG changeset patch # User Benoit Boissinot # Date 2010-08-19 22:17:50 # Node ID 3195cf01dfb9f6d8a955db4915a3f1515f61004c # Parent ff84cd2bdfaf894760d7adb2b58c57c5cc8838f6 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. diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -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: