--- a/hgext3rd/evolve/stablerangecache.py Thu Jul 11 21:48:37 2019 -0700
+++ b/hgext3rd/evolve/stablerangecache.py Thu Jul 11 15:30:40 2019 -0700
@@ -208,7 +208,11 @@
# 1) check the in memory cache
# 2) check the sqlcaches (and warm in memory cache we want we find)
cache = self._subrangescache
- if rangeid not in cache and rangeid[0] <= self._ondisktiprev and self._con is not None:
+ if (rangeid not in cache
+ and self._ondisktiprev is not None
+ and rangeid[0] <= self._ondisktiprev
+ and self._con is not None):
+
value = None
try:
result = self._con.execute(_queryrange, rangeid).fetchone()