obshashrange: properly break out of the two loops
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 17 May 2017 00:22:24 +0200
changeset 2370 c12af9eb403a
parent 2369 e38e7ef361ee
child 2371 48e879b3f5b6
obshashrange: properly break out of the two loops Otherwise we would continue to iterate even after we reseted the cache.
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