# HG changeset patch # User Pierre-Yves David # Date 1494973290 -7200 # Node ID e38e7ef361ee3a493f793dce775b641ea786985e # Parent b73e1f8796467ae0baac3289e94ceb4d2a80a4c7 obshashrange: fix reset conditional If the revision is in "revs" we should not reset the cache. The old code was wrong (Thanks goes to new tests for catching this). diff -r b73e1f879646 -r e38e7ef361ee hgext3rd/evolve/obsdiscovery.py --- a/hgext3rd/evolve/obsdiscovery.py Tue May 16 11:21:41 2017 +0200 +++ b/hgext3rd/evolve/obsdiscovery.py Wed May 17 00:21:30 2017 +0200 @@ -485,7 +485,7 @@ continue for p in l: r = rev(p) - if r is not None and r in revs: + if r is not None and r not in revs: self.clear(reset=True) break