evolve: prevent global variable shadowing
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 02 Mar 2017 18:13:20 +0100
changeset 2024 10d80adec0c2
parent 2023 40f4b0146db8
child 2025 d286222293c8
evolve: prevent global variable shadowing Small and harmless pyflake complains.
hgext3rd/evolve/__init__.py
--- a/hgext3rd/evolve/__init__.py	Thu Mar 02 18:13:03 2017 +0100
+++ b/hgext3rd/evolve/__init__.py	Thu Mar 02 18:13:20 2017 +0100
@@ -2332,8 +2332,8 @@
     # a revision we have to only delete the bookmark and not strip
     # anything. revsets cannot detect that case.
     nodetobookmarks = {}
-    for mark, node in repomarks.iteritems():
-        nodetobookmarks.setdefault(node, []).append(mark)
+    for mark, bnode in repomarks.iteritems():
+        nodetobookmarks.setdefault(bnode, []).append(mark)
     for marks in nodetobookmarks.values():
         if bookmarks.issuperset(marks):
            rsrevs = repair.stripbmrevset(repo, marks[0])