caches: protect against missing connection
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 05 Jan 2018 04:37:49 +0100
changeset 3364 9df35258e0c5
parent 3360 1905aac253f0
child 3365 911c91ce686f
caches: protect against missing connection If the connection cannot be established, we should not try to use it.
hgext3rd/evolve/stablerangecache.py
--- a/hgext3rd/evolve/stablerangecache.py	Fri Jan 05 09:51:07 2018 +0100
+++ b/hgext3rd/evolve/stablerangecache.py	Fri Jan 05 04:37:49 2018 +0100
@@ -141,7 +141,7 @@
             new.add((r, depth(r) - 1))
             new.add((r, 0))
         con = self._con
-        while new:
+        while new and con is not None:
             # many execute is not efficient
             next = new.pop()
             known.add(next)