changeset 2371:48e879b3f5b6

obshashrange: to not overwrite the list with the set We reusing the list variable lower in the code.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 17 May 2017 00:23:19 +0200
parents c12af9eb403a
children a0099d568ef8
files hgext3rd/evolve/obsdiscovery.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/obsdiscovery.py	Wed May 17 00:22:24 2017 +0200
+++ b/hgext3rd/evolve/obsdiscovery.py	Wed May 17 00:23:19 2017 +0200
@@ -474,7 +474,7 @@
 
         self._updating = True
 
-        revs = set(revs)
+        setrevs = set(revs)
         rev = repo.changelog.nodemap.get
         # if we have a new markers affecting a node already covered by the
         # cache, we must abort.
@@ -485,7 +485,7 @@
                     continue
                 for p in l:
                     r = rev(p)
-                    if r is not None and r not in revs:
+                    if r is not None and r not in setrevs:
                         self.clear(reset=True)
                         break
                 else: