changeset 2369:e38e7ef361ee

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).
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 17 May 2017 00:21:30 +0200
parents b73e1f879646
children c12af9eb403a
files hgext3rd/evolve/obsdiscovery.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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