Mercurial > evolve
changeset 2370:c12af9eb403a
obshashrange: properly break out of the two loops
Otherwise we would continue to iterate even after we reseted the cache.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 17 May 2017 00:22:24 +0200 |
parents | e38e7ef361ee |
children | 48e879b3f5b6 |
files | hgext3rd/evolve/obsdiscovery.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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