hbisect: avoid shadowing a variable in a list comprehension
authorAugie Fackler <augie@google.com>
Thu, 10 Nov 2016 16:33:23 -0500
changeset 30389 e124e83fd159
parent 30388 8819b63732b9
child 30390 bff77a693531
hbisect: avoid shadowing a variable in a list comprehension
mercurial/hbisect.py
--- a/mercurial/hbisect.py	Thu Nov 10 16:33:07 2016 -0500
+++ b/mercurial/hbisect.py	Thu Nov 10 16:33:23 2016 -0500
@@ -98,7 +98,7 @@
     tot = len(candidates)
     unskipped = [c for c in candidates if (c not in skip) and (c != badrev)]
     if tot == 1 or not unskipped:
-        return ([changelog.node(rev) for rev in candidates], 0, good)
+        return ([changelog.node(c) for c in candidates], 0, good)
     perfect = tot // 2
 
     # find the best node to test