# HG changeset patch # User Pierre-Yves David # Date 1494973344 -7200 # Node ID c12af9eb403a4aaf996f8a5efe7c344b844e268a # Parent e38e7ef361ee3a493f793dce775b641ea786985e obshashrange: properly break out of the two loops Otherwise we would continue to iterate even after we reseted the cache. diff -r e38e7ef361ee -r c12af9eb403a hgext3rd/evolve/obsdiscovery.py --- a/hgext3rd/evolve/obsdiscovery.py Wed May 17 00:21:30 2017 +0200 +++ b/hgext3rd/evolve/obsdiscovery.py Wed May 17 00:22:24 2017 +0200 @@ -488,6 +488,9 @@ if r is not None and r not in revs: self.clear(reset=True) break + else: + continue + break # XXX the current reset is too strong we could just drop the affected range