obshashrange: fix reset conditional
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 17 May 2017 00:21:30 +0200
changeset 2369 e38e7ef361ee
parent 2368 b73e1f879646
child 2370 c12af9eb403a
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).
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