Mercurial > evolve
changeset 2024:10d80adec0c2
evolve: prevent global variable shadowing
Small and harmless pyflake complains.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Thu, 02 Mar 2017 18:13:20 +0100 |
parents | 40f4b0146db8 |
children | d286222293c8 |
files | hgext3rd/evolve/__init__.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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])