changeset 3364:9df35258e0c5

caches: protect against missing connection If the connection cannot be established, we should not try to use it.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 05 Jan 2018 04:37:49 +0100
parents 1905aac253f0
children 911c91ce686f
files hgext3rd/evolve/stablerangecache.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)